Hi, a small fix. The disconnect call in TcpClient can't be called without parameters. A better option is to completely close the socket instead IMHO. The testing main function now also stops the Client explicitly, so the stop function gets "tested" each time the main is executed.
Hi, a small fix. The
disconnect
call inTcpClient
can't be called without parameters. A better option is to completely close the socket instead IMHO. The testing main function now also stops the Client explicitly, so thestop
function gets "tested" each time the main is executed.