![]() |
| | #1 |
| Registered User Join Date: Apr 2009
Posts: 1
| 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 | |
| | #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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |