It does not use multicast, no.

On 08/18/2011 07:05 PM, Paul Voigtlaender wrote:
Hi everyone,

first I must say that I'm quite new to networking.
But I read about multicast, which makes it possible to send to a lot of clients 
with only 1 time banwidth usage, sounds very good.

I saw that enet offers a broadcast function.

I read some of the enet sourcecode and found this in the enet_host_broadcast 
function:

for (currentPeer = host ->  peers;
          currentPeer<  &  host ->  peers [host ->  peerCount];
         ++ currentPeer)
{
    if (currentPeer ->  state != ENET_PEER_STATE_CONNECTED)
      continue;

    enet_peer_send (currentPeer, channelID, packet);
}

This looks for me as if enet is not using multicast.
Is that right, or am I overlooking something?
If it is true, why it is not used?

Thanks for your answers.

_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to