Well, I just assume you are using standard sockets for data transfer.
So you should have a thread in your server application just waiting for some data to receive
in your example.
If your clients sends data with send() and your server receives it (recv()) you can just display whatever data you sent.