PiggyBank1974
Newcomer
- Joined
- Sep 28, 2004
- Messages
- 9
At work we use External USB Modem for the users that are reporting on site, as there is no permanent internet facility available.
Ive been working on a chat program to link all users together, both the Server and Client are working fine over the internet, but Ive hit a snag and Im not to sure how to go about fixing it.
If a user closes the program data arrives to the server which is Zero in length this signifies to the server that the user has disconnected and all other users that are connected are informed of this.
The problem Ive got is if the connection goes down (on a datacard it can quite often depending on signal strength) or the datacard is disconnected, a signal does not get sent to the Server about the disconnection, this means that:
A: The socket is unavailable to use again as the server is still saying that its in use.
B: No other user gets informed of the disconnected user not been available.
Can anybody think of a way around this problem??
Ive been working on a chat program to link all users together, both the Server and Client are working fine over the internet, but Ive hit a snag and Im not to sure how to go about fixing it.
If a user closes the program data arrives to the server which is Zero in length this signifies to the server that the user has disconnected and all other users that are connected are informed of this.
The problem Ive got is if the connection goes down (on a datacard it can quite often depending on signal strength) or the datacard is disconnected, a signal does not get sent to the Server about the disconnection, this means that:
A: The socket is unavailable to use again as the server is still saying that its in use.
B: No other user gets informed of the disconnected user not been available.
Can anybody think of a way around this problem??