PDA

View Full Version : network packet retransmission



ddd
04-25-2012, 07:02 PM
I have a scenario where multiple clients connect to a TCP server. When any of the clients sends a packet to the server, the server is supposed to have a retransmission timer and keep sending that packet to another server until it receives a reply. How do I go about setting up this retransmission mechanism? I'm doing this on Linux in C.

ledow
04-26-2012, 04:59 AM
Show us the code you have, or the ideas you intend to implement?

You've basically just said: "I want to write a search engine. How can I do this?" or some equivalent.

Your first reply should really answer the question: "Have you made a piece of code that accepts TCP clients, or that can send a single packet?". If the answer's no, maybe you should try to walk before you run...

Maz
05-02-2012, 06:17 AM
It would be nice to know a bit more of this. What's the purpose here? TCP itself is a protocol taking care of retransmissions if needed.