#include <icmpsock.h>
Inheritance diagram for PICMPSocket:
Public Types | |
Status & Information | |
enum | PingStatus { PingSuccess, NetworkUnreachable, HostUnreachable, PacketTooBig, RequestTimedOut, BadRoute, TtlExpiredTransmit, TtlExpiredReassembly, SourceQuench, MtuChange, GeneralError, NumStatuses } |
Results of ICMP operation. More... | |
Public Member Functions | |
Ping | |
BOOL | Ping (const PString &host) |
BOOL | Ping (const PString &host, PingInfo &info) |
Protected Member Functions | |
const char * | GetProtocolName () const |
virtual BOOL | OpenSocket () |
virtual BOOL | OpenSocket (int ipAdressFamily) |
BOOL | WritePing (const PString &host, PingInfo &info) |
BOOL | 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.
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.
BOOL PICMPSocket::Ping | ( | const PString & | host | ) |
Send an ECHO_REPLY message to the specified host and wait for a reply to be sent back.
host | Host to send ping. |
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. |
const char* PICMPSocket::GetProtocolName | ( | ) | const [protected, virtual] |
This function returns the protocol name for the socket type.
Implements PSocket.
virtual BOOL PICMPSocket::OpenSocket | ( | ) | [protected, virtual] |
Implements PSocket.
virtual BOOL PICMPSocket::OpenSocket | ( | int | ipAdressFamily | ) | [protected, virtual] |
Implements PIPSocket.
BOOL PICMPSocket::ReadPing | ( | PingInfo & | info | ) | [protected] |