#include <ipsock.h>
Inheritance diagram for PIPSocket:
Public Member Functions | |
virtual PString | GetName () const |
virtual BOOL | OpenSocket (int ipAdressFamily=PF_INET)=0 |
virtual BOOL | Connect (const PString &address) |
virtual BOOL | Connect (const Address &addr) |
virtual BOOL | Connect (WORD localPort, const Address &addr) |
virtual BOOL | Connect (const Address &iface, const Address &addr) |
virtual BOOL | Connect (const Address &iface, WORD localPort, const Address &addr) |
virtual BOOL | Listen (unsigned queueSize=5, WORD port=0, Reusability reuse=AddressIsExclusive) |
virtual BOOL | Listen (const Address &bind, unsigned queueSize=5, WORD port=0, Reusability reuse=AddressIsExclusive) |
virtual BOOL | GetLocalAddress (Address &addr) |
virtual BOOL | GetLocalAddress (Address &addr, WORD &port) |
virtual BOOL | GetPeerAddress (Address &addr) |
virtual BOOL | GetPeerAddress (Address &addr, WORD &port) |
PString | GetLocalHostName () |
PString | GetPeerHostName () |
PLIST (RouteTable, RouteEntry) | |
PLIST (InterfaceTable, InterfaceEntry) | |
BOOL | SetCaptureReceiveToAddress () |
PIPSocket::Address | GetLastReceiveToAddress () const |
Static Public Member Functions | |
static int | GetDefaultIpAddressFamily () |
static void | SetDefaultIpAddressFamily (int ipAdressFamily) |
static void | SetDefaultIpAddressFamilyV4 () |
static PIPSocket::Address | GetDefaultIpAny () |
static PString | GetHostName () |
static PString | GetHostName (const PString &hostname) |
static PString | GetHostName (const Address &addr) |
static BOOL | GetHostAddress (Address &addr) |
static BOOL | GetHostAddress (const PString &hostname, Address &addr) |
static PStringArray | GetHostAliases (const PString &hostname) |
static PStringArray | GetHostAliases (const Address &addr) |
static BOOL | IsLocalHost (const PString &hostname) |
static void | ClearNameCache () |
static BOOL | GetGatewayAddress (Address &addr) |
static PString | GetGatewayInterface () |
static BOOL | GetRouteTable (RouteTable &table) |
static BOOL | GetInterfaceTable (InterfaceTable &table) |
static BOOL | GetNetworkInterface (PIPSocket::Address &addr) |
Protected Member Functions | |
PIPSocket () | |
Classes | |
class | Address |
class | InterfaceEntry |
class | RouteEntry |
|
|
|
Clear the name (DNS) cache. |
|
|
|
|
|
|
|
|
|
Connect a socket to a remote host on the specified port number. This is typically used by the client or initiator of a communications channel. This connects to a "listening" socket at the other end of the communications channel. The port number as defined by the object instance construction or the PIPSocket::SetPort()# function.
Reimplemented from PSocket. Reimplemented in PUDPSocket, PSocksSocket, PSocksUDPSocket, and PTelnetSocket. |
|
|
|
|
|
Get the IP address that is being used as the gateway, that is, the computer that packets on the default route will be sent. 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.
|
|
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. 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.
|
|
|
|
Get the Internet Protocol address for the specified host, or if none specified, for the host this process is running on.
|
|
|
|
Get the alias host names for the specified host. This includes all DNS names, CNAMEs, names in the local hosts file and IP numbers (as "dot" format strings) for the host.
|
|
|
|
|
|
Get the "official" host name for the host specified or if none, the host this process is running on. The host may be specified as an IP number or a hostname alias and is resolved to the canonical form.
|
|
Get a list of all interfaces
|
|
return the interface address of the last incoming packet |
|
|
|
Get the Internet Protocol address for the local host.
|
|
Get the host name for the local host.
|
|
Get the platform and I/O channel type name of the channel. For an IP socket this returns the host name of the peer the socket is connected to, followed by the socket number it is connected to.
Reimplemented from PChannel. |
|
Get the address of an interface that corresponds to a real network
|
|
|
|
Get the Internet Protocol address for the peer host the socket is connected to.
|
|
Get the host name for the peer host the socket is connected to.
|
|
Get the systems route table.
|
|
Determine if the specified host is actually the local machine. This can be any of the host aliases or multi-homed IP numbers or even the special number 127.0.0.1 for the loopback device.
|
|
|
|
Listen on a socket for a remote host on the specified port number. This may be used for server based applications. A "connecting" socket begins a connection by initiating a connection to this socket. An active socket of this type is then used to generate other "accepting" sockets which establish a two way communications channel with the "connecting" socket. 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.
Reimplemented in PTCPSocket, PSocksSocket, and PSocksUDPSocket. |
|
Implemented in PICMPSocket, PTCPSocket, and PUDPSocket. |
|
|
|
|
|
Set flag to capture interface address for incoming packets
|
|
|
|
|