[ENet-discuss] Reconnect after abrubt disconnect
Madhan Kanagavel
madhan at yahoo.com
Mon Feb 5 08:30:51 PST 2007
Ah, that works great!
Thank you for the quick response.
-Madhan
----- Original Message ----
From: Lee Salzman <lsalzman1 at cox.net>
To: Madhan Kanagavel <madhan at yahoo.com>; Discussion of the ENet library <enet-discuss at cubik.org>
Sent: Monday, February 5, 2007 9:35:31 AM
Subject: Re: [ENet-discuss] Reconnect after abrubt disconnect
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