How can one detect when a remote Server connection on a TCP Socket is dropped (or closed). To quote the documentation in the Android Network Tutorial:
"The Connected event is raised when the connection is ready or if it failed".
A.) However, the event is only fired when the socket connects.
B.) Socket1.Connected remains true even though the remote Server disconnects.
Whithout having an indication of the true connection state the program keeps sending data to the disconnected remote Server creating an exception at some point.
All suggestions would be appreciated.
B4A is so powerful! I love what we can do with it. Thanks B4A Team!
TeiTerryd
"The Connected event is raised when the connection is ready or if it failed".
A.) However, the event is only fired when the socket connects.
B.) Socket1.Connected remains true even though the remote Server disconnects.
Whithout having an indication of the true connection state the program keeps sending data to the disconnected remote Server creating an exception at some point.
All suggestions would be appreciated.
B4A is so powerful! I love what we can do with it. Thanks B4A Team!
TeiTerryd