Quote Originally Posted by cmeliak
how can server recognize that it should send data back through socket
The same way as the client, because it will also have two sockets.