Thread: network packet retransmission

  1. #1
    Registered User
    Join Date
    Apr 2012

    network packet retransmission

    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.

  2. #2
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    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...

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

  3. #3
    Registered User Maz's Avatar
    Join Date
    Nov 2005
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. constructing and parsing network packet
    By ddd in forum C Programming
    Replies: 5
    Last Post: 04-23-2012, 04:12 PM
  2. network packet analyzer (sniffer)
    By sauravjyotisrv in forum Linux Programming
    Replies: 3
    Last Post: 03-29-2012, 10:03 AM
  3. Network queston for users with mixed OS on their network...
    By CommonTater in forum Networking/Device Communication
    Replies: 8
    Last Post: 09-10-2011, 08:56 PM
  4. Replies: 11
    Last Post: 07-27-2011, 01:44 PM
  5. Complex struct organization (network/packet-related)
    By brooksbp in forum C Programming
    Replies: 6
    Last Post: 08-16-2008, 10:38 PM

Tags for this Thread