This class describes a type of socket that will communicate using the Internet Protocol
![]() | Address : public in_addr A class describing an IP address |
![]() | RouteEntry : public PObject Describes a route table entry |
![]() | InterfaceEntry : public PObject Describes an interface table entry |
![]() | GetName () const Get the platform and I/O channel type name of the channel. |
![]() | Connect ( const PString & address ) Connect a socket to a remote host on the specified port number. |
![]() | Listen ( unsigned queueSize = 5, WORD port = 0, Reusability reuse = AddressIsExclusive ) Listen on a socket for a remote host on the specified port number. |
![]() | GetHostName () Get the öfficial" host name for the host specified or if none, the host this process is running on. |
![]() | GetHostAddress ( Address & addr ) Get the Internet Protocol address for the specified host, or if none specified, for the host this process is running on. |
![]() | GetHostAliases ( const PString & hostname ) Get the alias host names for the specified host. |
![]() | IsLocalHost ( const PString & hostname ) Determine if the specified host is actually the local machine. |
![]() | GetLocalAddress ( Address & addr ) Get the Internet Protocol address for the local host. |
![]() | GetPeerAddress ( Address & addr ) Get the Internet Protocol address for the peer host the socket is connected to. |
![]() | GetLocalHostName () Get the host name for the local host. |
![]() | GetPeerHostName () Get the host name for the peer host the socket is connected to. |
![]() | ClearNameCache () Clear the name (DNS) cache |
![]() | GetGatewayAddress ( Address & addr ) Get the IP address that is being used as the gateway, that is, the computer that packets on the default route will be sent. |
![]() | GetGatewayInterface () Get the name for the interface that is being used as the gateway, that is, the interface that packets on the default route will be sent. |
![]() | GetRouteTable ( RouteTable & table ) Get the systems route table. |
![]() | GetInterfaceTable ( InterfaceTable & table ) Get a list of all interfaces |
Socket establishment functions
Socket options functions
Port/Service database functions
Multiple socket selection functions
Integer conversion functions
Construction
Overrides from class PObject
Information functions
Reading functions
Writing functions
Miscellaneous functions
Error functions
Run Time Type functions
Comparison functions
I/O functions
This class describes a type of socket that will communicate using the Internet Protocol
The port number as defined by the object instance construction or the
PIPSocket::SetPort() function.
If the port parameter is zero then the port number as
defined by the object instance construction or the
PIPSocket::SetPort() function. For the UDP protocol, the queueSize parameter is ignored.
The string returned may be used in the Connect() function to open that
interface. Note that the driver does not need to be open for this function to work.
The string returned may be used in the Connect() function to open that
interface. Note that the driver does not need to be open for this function to work.
virtual BOOL Connect( const PString & address )
virtual BOOL Listen( unsigned queueSize = 5, WORD port = 0, Reusability reuse = AddressIsExclusive )
port - Port number to use for the connection.
reuse - Can/Cant listen more than once.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 )
Alphabetic index HTML hierarchy of classes or Java