TCP echo server

Posted by khera-satinder on Stack Overflow See other posts from Stack Overflow or by khera-satinder
Published on 2010-05-18T06:15:51Z Indexed on 2010/05/18 6:20 UTC
Read the original article Hit count: 366

Filed under:

I have written a code for TCP echo server code in C i.e. whatever I receive I have to send it back. I am also successful in doing so but I am facing a problem. Sometimes the packets that are received are not echoed back. For this I have introduced a delay after receiving and the no. of failures reduced but the problem still exists. Can someone suggest something? Later on I would like to run two server applications simultaneously on two different ports.

Regards, Satinder Singh

© Stack Overflow or respective owner

Related posts about tcpserver