[ENet-discuss] Issue of lost event

Lee Salzman lsalzman1 at cox.net
Mon Sep 3 13:40:05 PDT 2007


I have never heard of this happening for anyone else before, so I can't 
say. If the data reached the client, it would have been delivered.

Lee

Todd Huang wrote:
> Hello:
> 
>     After setting the ENet communication between the client and server, we 
> run into a problem
> that the client couldn't receive the ENET_EVENT_TYPE_RECEIVE event after 
> sometime. However,
> the ENet communication still work successfully. That is, the ENet module on 
> the client side
> continuously acknowledges the packets received from the server side.
> 
>     The code used by the client side is written as the following:
> 
> 
>     while (1)
>     {
>         if (enet_host_service(enetHost, &event, 30) > 0)
>         {
>             switch(event.type)
>             {
>                 case ENET_EVENT_TYPE_CONNECT:
>                        ----------------
>                     break ;
> 
>                 case ENET_EVENT_TYPE_DISCONNECT:
>                         ---------------
>                     break ;
> 
>                 case ENET_EVENT_TYPE_RECEIVE:
>                     send data to upper layer application ;
>                     break ;
> 
>                 default:
>                     break ;
>              }/* End of switch */
>         }/* End of if event received */
>     }/* End of while */
> 
> 
>     Does any one have encountered the same problem before? Could anyone give 
> us some advices
> on how to solve or identify this problem?
> 
>     Thanks.
> 


More information about the ENet-discuss mailing list