Roland Bock wrote:
thanks, I am going to dive into Boost::Asio myself, soon, and will come back to your example then :-)
Just wondering (while being aware, that this is not a fully fledged telnet client): I tried to connect to localhost, port 23. There is no service running, so I would have expected the program to terminate (it terminates when I specify a host which does not exist). I even sent 800MB of XML data into the program. It did not complain and wrote it to Nirvana, I guess :-)
You're quite right - I haven't tested this code for failure like this. My initial thought is that it probably silently calls the close function and exits the communication thread without exiting the application. I'll look at adding this resubmitting the code - it should be a straightforward change. Jeff ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________