in reply to How to insert delay between two server-client messages.
It looks like you're closing sockets and shutting down after reading the first message.
Seems to me you should have a loop in there to keep reading multiple times until you decide it is appropriate to stop.
|
|---|