Identifying if a tcp stream has been dropped

BlitzPlus Forums/BlitzPlus Programming/Identifying if a tcp stream has been dropped

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Im just wondering if anyone has the answer to this

Im thinking of writing my own mud/mush engien and while ive done a lot of network stuff in the past its always been with my own clients. when doing this i have them ping each other in the background to check if they are still running.

the thing is this time id like to make it work just with telnet. now i can basically get it all working but there is no background messages going on to identify things are still running and intrestingly enough should i stop the servr telnet identifies that its gone.

i can identify it was sending no messages (at least none picked up by readavail() ) yet it was still able to identify when the connection dropped.

My question is, is there a way for me to do this at the blitz end. is there any way i can tel if a stream is still live without a client sending back a message periodically (because obviously i cant force random telnet clients to do this)

ive done a little research and ive had no luck, anyone know how to do this?