#include <icmpsock.h>
Inheritance diagram for PICMPSocket:
Public Types | |
PingSuccess | |
NetworkUnreachable | |
HostUnreachable | |
PacketTooBig | |
RequestTimedOut | |
BadRoute | |
TtlExpiredTransmit | |
TtlExpiredReassembly | |
SourceQuench | |
MtuChange | |
GeneralError | |
NumStatuses | |
Status & Information | |
enum | PingStatus { PingSuccess, NetworkUnreachable, HostUnreachable, PacketTooBig, RequestTimedOut, BadRoute, TtlExpiredTransmit, TtlExpiredReassembly, SourceQuench, MtuChange, GeneralError, NumStatuses } |
Results of ICMP operation. More... | |
Public Member Functions | |
Construction | |
PICMPSocket () | |
Ping | |
PBoolean | Ping (const PString &host) |
PBoolean | Ping (const PString &host, PingInfo &info) |
Protected Member Functions | |
const char * | GetProtocolName () const |
virtual PBoolean | OpenSocket () |
virtual PBoolean | OpenSocket (int ipAdressFamily) |
PBoolean | WritePing (const PString &host, PingInfo &info) |
PBoolean | ReadPing (PingInfo &info) |
Classes | |
class | PingInfo |
Information used by and obtained by the ping operation. More... |
PICMPSocket::PICMPSocket | ( | ) |
Create a TCP/IP protocol socket channel. If a remote machine address or a "listening" socket is specified then the channel is also opened.
const char* PICMPSocket::GetProtocolName | ( | ) | const [protected, virtual] |
This function returns the protocol name for the socket type.
Implements PSocket.
virtual PBoolean PICMPSocket::OpenSocket | ( | int | ipAdressFamily | ) | [protected, virtual] |
Open an IPv4 or IPv6 socket
Implements PIPSocket.
Send an ECHO_REPLY message to the specified host and wait for a reply to be sent back.
host | Host to send ping. |
info | Information on the ping and reply. |
Send an ECHO_REPLY message to the specified host and wait for a reply to be sent back.
host | Host to send ping. |