C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-26-2009, 10:39 PM   #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.
vishal_askqns is offline   Reply With Quote
Old 04-28-2009, 07:02 PM   #2
Registered User
 
Join Date: Mar 2005
Location: Mountaintop, Pa
Posts: 1,054
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.
BobS0327 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP Header problem (error) nasim751 C Programming 1 04-25-2008 07:30 AM
Function argument assignment between types "unsigned int*" and "unsigned long*" nadeer78 C Programming 8 03-10-2008 11:57 AM
Accessing TCP flags in TCP packets on Linux using C !! vishamr Linux Programming 2 10-16-2006 08:48 AM
SSH Hacker Activity!! AAHHH!! Kleid-0 A Brief History of Cprogramming.com 15 03-06-2005 03:53 PM
TCP TIME_WAIT state Engineer A Brief History of Cprogramming.com 1 12-27-2001 08:50 AM


All times are GMT -6. The time now is 01:49 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22