Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ping.h
Package: export.zip [view]
Upload User: hepax88
Upload Date: 2007-01-03
Package Size: 1101k
Code Size: 1k
Category:
TCP/IP Stack
Development Platform:
Visual C++
- #ifndef _PING_H
- #define _PING_H
- #ifndef _SESSION_H
- #include "session.h"
- #endif
- struct ping {
- struct session *sp;
- int s; /* Socket for pinging */
- int32 target; /* Starting target IP address */
- int incflag; /* If true, increment target after each ping */
- int32 sent; /* Total number of pings sent */
- int32 srtt; /* Smoothed round trip time */
- int32 mdev; /* Mean deviation */
- int32 maxrtt; /* Maximum rtt */
- int32 minrtt; /* Minimum rtt */
- int32 responses; /* Total number of responses */
- int32 interval; /* Inter-ping interval, ticks */
- uint16 len; /* Length of data portion of ping */
- };
- /* In ping.c: */
- void echo_proc(int32 source,int32 dest,struct icmp *icmp,struct mbuf **bpp);
- int pingem(int s,int32 target,uint16 seq,uint16 id,uint16 len);
- #endif /* _PING_H */