Thanks for your comment on this.
Gps devices are constantly connected to the server, which waits for devices data.
Devices can not send the EOF command, because they only disconnect when there is a problem with gsm network or some other unpredicted outage.
When this occur, device reconnect automatically to the server and opens a new socket, but the old one remains open on the server side. (This happens about once a day)
I need to close those sockets which are not receiving data for some time.
Second thing, I need to occasionally send some data to selected devices (Instruct the device to reboot, change some configuration, etc.)
I have to do all of this on a server side, because I have no control over devices software.
Any help would be really appreciated
Igor V.
In reply to Re^2: tcp server (bidirectional)
by igor1212
in thread tcp server (bidirectional)
by igor1212
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |