I have problems when I try to run this simple textbook-like example. The server starts ok. Writing data from the client to the server is ok. The server receives string and is supposed to write a string back to the stream connected to the client. However, the client hangs when it tries to read the result from the stream. I do not see why ?
I would think this would work without multithreading the server or using callbacks.