30 #ifndef PTLIB_ICMPSOCKET_H
31 #define PTLIB_ICMPSOCKET_H
138 #include "msos/ptlib/icmpsock.h"
140 #include "unix/ptlib/icmpsock.h"
145 #endif // PTLIB_ICMPSOCKET_H
Definition: icmpsock.h:60
Definition: icmpsock.h:68
Create a socket channel that uses allows ICMP commands in the Internal Protocol.
Definition: icmpsock.h:42
This class defines an arbitrary time interval to millisecond accuracy.
Definition: timeint.h:51
const char * GetProtocolName() const
This function returns the protocol name for the socket type.
PINDEX bufferSize
Size of buffer (< 64k).
Definition: icmpsock.h:90
Definition: icmpsock.h:69
virtual PBoolean OpenSocket()
PICMPSocket()
Create a TCP/IP protocol socket channel.
Definition: icmpsock.h:65
Information used by and obtained by the ping operation.
Definition: icmpsock.h:74
Definition: icmpsock.h:62
Definition: icmpsock.h:63
Definition: icmpsock.h:70
const BYTE * buffer
Send buffer (if NULL, defaults to 32 bytes).
Definition: icmpsock.h:88
PingStatus
Results of ICMP operation.
Definition: icmpsock.h:58
bool PBoolean
Definition: object.h:174
PingStatus status
Status of the last ping operation.
Definition: icmpsock.h:102
The character string class.
Definition: pstring.h:108
PBoolean Ping(const PString &host)
Send an ECHO_REPLY message to the specified host and wait for a reply to be sent back.
Definition: icmpsock.h:64
Definition: icmpsock.h:67
A class describing an IP address.
Definition: ipsock.h:59
BYTE ttl
Time To Live for packet.
Definition: icmpsock.h:86
Internet Protocol Datagram Socket class.
Definition: ipdsock.h:41
static PProcessIdentifier GetCurrentProcessID()
Get the platform dependent process identifier for the currentprocess.
PTimeInterval delay
Time for packet to make trip.
Definition: icmpsock.h:96
Definition: icmpsock.h:59
PingInfo(WORD id=(WORD) PProcess::GetCurrentProcessID())
Create Ping information structure.
Definition: icmpsock.h:66
Address localAddr
Destination address of reply packet.
Definition: icmpsock.h:100
WORD sequenceNum
Sequence number for ping packet.
Definition: icmpsock.h:84
Address remoteAddr
Source address of reply packet.
Definition: icmpsock.h:98
WORD identifier
Arbitrary identifier for the ping.
Definition: icmpsock.h:82
Definition: icmpsock.h:61