class PIPSocket |
This class describes a type of socket that will communicate using the Internet Protocol.
![]() | 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 "official" 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
Integer conversion functions
Multiple socket selection functions
Construction
Overrides from class PObject
Information functions
Reading functions
Writing functions
Miscellaneous functions
Error functions
Run Time Type functions
I/O functions
Comparison functions
This class describes a type of socket that will communicate using the Internet Protocol. If P_USE_IPV6 is not set, IPv4 only is supported. If P_USE_IPV6 is set, both IPv4 and IPv6 adresses are supported, with IPv4 as default. This allows to transparently use IPv4, IPv6 or Dual stack operating systems.
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.
Alphabetic index HTML hierarchy of classes or Java