Close socket from client
Posted: Mon May 03, 2010 9:18 am
Hello,
How do I cleanly close a socket from the client? I listen on a port, accept a connection, and dump a whole bunch of data out to it. I then telnet into that port and get the data, but have no way of aborting with ctrl-c or anything.
Alternatively, once I close telnet, I could keep checking the client via ping or something and close the connection if I don't get a response.
Any thoughts on this?
Thanks!
Christoph
How do I cleanly close a socket from the client? I listen on a port, accept a connection, and dump a whole bunch of data out to it. I then telnet into that port and get the data, but have no way of aborting with ctrl-c or anything.
Alternatively, once I close telnet, I could keep checking the client via ping or something and close the connection if I don't get a response.
Any thoughts on this?
Thanks!
Christoph