in reply to Maintain TCP client connection to server?
Thus, you could benefit of the can_write method in IO::Select, even if I actually suspect that your mileage may vary with the system you're using, and in particular whether it supports a "real" select or not.
A simple, brute force approach could be that of trying to write and see if the write was successful. If the TCP connection broke, you should have some feedback about something gone wrong and thus re-establish the connection.
Flavio.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Maintain TCP client connection to server?
by Anonymous Monk on Mar 25, 2005 at 00:51 UTC | |
by polettix (Vicar) on Mar 25, 2005 at 12:03 UTC | |
by Tanktalus (Canon) on Mar 25, 2005 at 01:18 UTC | |
by Anonymous Monk on Mar 25, 2005 at 02:17 UTC |