[ENet-discuss] Reconnect after abrubt disconnect

Lee Salzman lsalzman1 at cox.net
Mon Feb 5 07:35:31 PST 2007


Seed the random number generator with srand(time(NULL)) so that it will 
generate unique session IDs.

Lee

Madhan Kanagavel wrote:
> Thanks for the nice library. 
> I have a question about one behavior. (which could be my issue).
> 
> If I have a server S and a client C.
> 
> 1) C Connects to S --> OK
> 2) Connection Notification received ok for both C and S
> 3) C Disconnects without sending notification (Because user Ctrl-C'd out of the Client app)
> 4) C Connects again immediately to S.
> 5) No connection occurs between C and S, because S thinks C is already connected. --> Problem
> 
> What is the solution to this problem?
> 
> Thanks for any guidance.
> 
> -Madhan
> 




More information about the ENet-discuss mailing list