Thread: TCP TimeOut

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    1

    Question TCP TimeOut

    Hi All,

    According to the RFC 793 (TCP) the timeout factor in the TCP ping can be adjusted with the help of ‘timeout’ parameter with OPEN and SEND calls.

    The format of these calls are as follows.

    OPEN (local port, foreign socket, active/passive [, timeout] [, precedence] [, security/compartment] [, options]) -> local connection name

    SEND (local connection name, buffer address, byte
    count, PUSH flag, URGENT flag [, timeout])

    I want to know how can I use it in my application.
    I am preparing a utility which will dows the TCP ping.

    If someone can provode any sample code... It will be heartly welcomed.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    Take a look at the IcmpSendEcho function.

    Or better yet, setsocketopt using a level of SOL_SOCKET and SO_RCVTIMEO.
    Last edited by BobS0327; 04-28-2009 at 07:33 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TCP Header problem (error)
    By nasim751 in forum C Programming
    Replies: 1
    Last Post: 04-25-2008, 07:30 AM
  2. Replies: 8
    Last Post: 03-10-2008, 11:57 AM
  3. Accessing TCP flags in TCP packets on Linux using C !!
    By vishamr in forum Linux Programming
    Replies: 2
    Last Post: 10-16-2006, 08:48 AM
  4. SSH Hacker Activity!! AAHHH!!
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-06-2005, 03:53 PM
  5. TCP TIME_WAIT state
    By Engineer in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 12-27-2001, 08:50 AM