[ENet-discuss] some questions about the flow of send data

JiangHao jaxecn at gmail.com
Tue Aug 7 02:08:12 PDT 2012


ps,a udp packet is made  when call  'enet_socket_send' .

2012/8/7 JiangHao <jaxecn at gmail.com>

> hi,
>     i have posted a mail about the flow of send data,and i know the flow
> of send data.
>     If I'm not mistaken,the enet put  a batch of the current peer's
> commands into host->buffer array,and call 'enet_socket_send'
>     that's means a udp packet contain a batch of commands,and the command
> is made when we send some data to peer or something else.these commands
> aways has a reliable sequence number witch is used in the reliability of
> the udp realization.
>     you know, if a udp packet' size is too large,the udp packet will be
>  divided into multiple IP packet, and for the receiver ,the UDP packet may
> be dropped if some IP packets is lost. this means that a batch of the
> commands may be dropped and enet will have to resend these command.
>    I want to know why each command put in a UDP packet ,avoid a batch of
> the command the possibility of loss.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20120807/b29f313b/attachment.html>


More information about the ENet-discuss mailing list