Create a socket channel that uses allows ICMP commands in the Internal Protocol
Inheritance:
Public Methods
| Construction
|
| Ping
|
Public Members
| Status & Information
|
Public Methods
-
virtual BOOL ReadFrom( void* buf, PINDEX len, Address & addr, WORD & port )
-
virtual BOOL WriteTo( const void* buf, PINDEX len, const Address & addr, WORD port )
Public Methods
-
virtual PString GetName() const
-
virtual BOOL Connect( const PString & address )
-
virtual BOOL Listen( unsigned queueSize = 5, WORD port = 0, Reusability reuse = AddressIsExclusive )
-
static PString GetHostName()
-
static BOOL GetHostAddress( Address & addr )
-
static PStringArray GetHostAliases( const PString & hostname )
-
static BOOL IsLocalHost( const PString & hostname )
-
virtual BOOL GetLocalAddress( Address & addr )
-
virtual BOOL GetPeerAddress( Address & addr )
-
PString GetLocalHostName()
-
PString GetPeerHostName()
-
static void ClearNameCache()
-
static BOOL GetGatewayAddress( Address & addr )
-
static PString GetGatewayInterface()
-
static BOOL GetRouteTable( RouteTable & table )
-
static BOOL GetInterfaceTable( InterfaceTable & table )
Public Members
-
class Address: public PObject
- A class describing an IP address
-
class RouteEntry: public PObject
- Describes a route table entry
-
class InterfaceEntry: public PObject
- Describes an interface table entry
Inherited from PSocket:
Public Methods
-
Socket establishment functions
-
Socket options functions
-
Port/Service database functions
-
Integer conversion functions
Public Members
-
Multiple socket selection functions
Protected Fields
-
WORD port
Protected Methods
-
virtual const char* GetProtocolName() const
Public Methods
-
Overrides from class PObject
-
Information functions
-
Reading functions
-
Writing functions
-
Miscellaneous functions
-
static BOOL ConvertOSError( int libcReturnValue, Errors & lastError, int & osError )
Public Members
-
Error functions
Protected Fields
-
int os_handle
-
Errors lastErrorCode[NumErrorGroups+1]
-
int lastErrorNumber[NumErrorGroups+1]
-
PINDEX lastReadCount
-
PINDEX lastWriteCount
-
PTimeInterval readTimeout
-
PTimeInterval writeTimeout
Protected Methods
-
virtual BOOL ConvertOSError( int libcReturnValue, ErrorGroup group = LastGeneralError )
-
BOOL SetErrorValues( Errors errorCode, int osError, ErrorGroup group = LastGeneralError )
-
int ReadCharWithTimeout( PTimeInterval & timeout )
Inherited from PObject:
Public Methods
-
Run Time Type functions
-
I/O functions
Public Members
-
Comparison functions
Documentation
Create a socket channel that uses allows ICMP commands in the Internal
Protocol
Construction
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.
Status & Information
enum PingStatus
- Results of ICMP operation
class PingInfo
- Information used by and obtained by the ping operation
PingInfo(WORD id = (WORD)PProcess::Current().GetProcessID())
- Create Ping information structure
Supplied data
WORD identifier
- Arbitrary identifier for the ping
WORD sequenceNum
- Sequence number for ping packet
BYTE ttl
- Time To Live for packet
const BYTE* buffer
- Send buffer (if NULL, defaults to 32 bytes)
PINDEX bufferSize
- Size of buffer (< 64k)
Returned data
PTimeInterval delay
- Time for packet to make trip
Address remoteAddr
- Source address of reply packet
Address localAddr
- Destination address of reply packet
PingStatus status
- Status of the last ping operation
Ping
BOOL Ping( const PString & host )
- Send an ECHO_REPLY message to the specified host and wait for a reply
to be sent back.
- Parameters:
- host - Host to send ping.
- Returns:
- FALSE if host not found or no response.
BOOL Ping( const PString & host, PingInfo & info )
- Send an ECHO_REPLY message to the specified host and wait for a reply
to be sent back.
- Parameters:
- host - Host to send ping.
info - Information on the ping and reply.
- Returns:
- FALSE if host not found or no response.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.