[ENet-discuss] ordered packets
Paul Collier
paching at gmail.com
Thu Mar 30 09:58:14 PST 2006
I'm curious about setting the range of channels. Is there any way to
set it other than by the client at connection establishment? If
someone tried to clone a program's protocol with enet but changed the
number of channels, could this possibly affect the behaviour of the
server you were running? (i.e. they set it to zero--could this break
the server network code? Or perhaps they set it to a very high
number--could this slow down the server?) Enet seems to be pretty good
about security from what I've seen, in any case.
- Paul
On 3/30/06, Luis Cabellos <lists at tragnarion.com> wrote:
> You can send Unordered packets using a range of channels and send the
> packets sequentially in those channels. e.g: If you reserve [min, max] for
> unordered send, the next code snip will work like an unordered send.
>
> packet = enet_packet_create( msg, size, ENET_PACKET_FLAG_RELIABLE );
> enet_peer_send( server, unorderedChannel, packet);
> ++this->unorderedChannel;
> if( unorderedChannel > MAX_UNORDERED ) {
> unorderedChannel = MIN_UNORDERED;
> }
>
> Luis | Tragnarion
>
>
> Tibor Klajnscek wrote:
> Yes, as far as I know it should. It is the way enet works - it won't send
> another reliable packet until the previous one gets through. Assuming you
> send them on the same channel of course.
>
> - Tibor
>
> siquan at ms16.hinet.net wrote:
>
> If the server send packets with ENET_PACKET_FLAG_RELIABLE,
> the client will receive them by order?
>
> Best regards,
> Si-Quan
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
>
>
More information about the ENet-discuss
mailing list