[ENet-discuss] Does ENet use Multicast?

Paul Voigtlaender P.Voigtlaender at gmx.de
Thu Aug 18 09:05:38 PDT 2011


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.
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the ENet-discuss mailing list