[ENet-discuss] Does ENet use Multicast?

Lee Salzman lsalzman at gmail.com
Thu Aug 18 02:03:34 PDT 2011


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.



More information about the ENet-discuss mailing list