#include <pnat.h>
Inheritance diagram for PNatMethod:
Public Member Functions | |
Construction | |
PNatMethod () | |
~PNatMethod () | |
General Functions | |
virtual BOOL | GetExternalAddress (PIPSocket::Address &externalAddress, const PTimeInterval &maxAge=1000)=0 |
virtual BOOL | CreateSocketPair (PUDPSocket *&socket1, PUDPSocket *&socket2)=0 |
virtual BOOL | IsAvailable () |
virtual void | SetPortRanges (WORD portBase, WORD portMax=0, WORD portPairBase=0, WORD portPairMax=0) |
Protected Attributes | |
PNatMethod::PortInfo | singlePortInfo |
PNatMethod::PortInfo | pairedPortInfo |
Classes | |
struct | PortInfo |
|
Default Contructor |
|
Deconstructor |
|
CreateSocketPair Create the UDP Socket pair Implemented in PSTUNClient. |
|
GetExternalAddress Get the acquired External IP Address.
Implemented in PSTUNClient. |
|
Returns whether the Nat Method is ready and available in assisting in NAT Traversal. The principal is function is to allow the EP to detect various methods and if a method is detected then this method is available for NAT traversal The Order of adding to the PNstStrategy determines which method is used Reimplemented in PSTUNClient. |
|
Set the port ranges to be used on local machine. Note that the ports used on the NAT router may not be the same unless some form of port forwarding is present. If the port base is zero then standard operating system port allocation method is used. If the max port is zero then it will be automatically set to the port base + 99.
|
|
|
|
|