Problem with CloseNetworkConnection
Posted: Sat Jul 22, 2006 8:56 pm
Hello !
I'm working on a chat server/client application and I've got some problem with the CloseNetworkConnection function.
When a client send "QUIT" to my server, I use CloseNetworkConnection(ClientID) (for example, clientid = 1904). No problem here. But if the same client reconnect (same ip ? No sure, i'm working localy), there are problem with his new clientid. The "Case 1" told me that the ClientID is 1908, but when the client send something, "Case 2" told me that his clientID is 1904...
But, if the client disconnect by himself (= "Case 4" for server), everything work good ..
Any idea ?
I'm working on a chat server/client application and I've got some problem with the CloseNetworkConnection function.
When a client send "QUIT" to my server, I use CloseNetworkConnection(ClientID) (for example, clientid = 1904). No problem here. But if the same client reconnect (same ip ? No sure, i'm working localy), there are problem with his new clientid. The "Case 1" told me that the ClientID is 1908, but when the client send something, "Case 2" told me that his clientID is 1904...
But, if the client disconnect by himself (= "Case 4" for server), everything work good ..
Any idea ?