|
OverSim
|
#include <ProxNodeHandle.h>
Public Member Functions | |
| ProxTransportAddress () | |
| ProxTransportAddress (const TransportAddress &transportAddress) | |
| ProxTransportAddress (const TransportAddress &transportAddress, const Prox &prox) | |
| virtual | ~ProxTransportAddress () |
| void | setProx (Prox prox) |
| Prox | getProx () const |
Public Member Functions inherited from TransportAddress | |
| TransportAddress () | |
| Constructs a unspecified TransportAddress. | |
| virtual | ~TransportAddress () |
| Standard destructor. | |
| TransportAddress (const TransportAddress &handle) | |
| Copy constructor. | |
| TransportAddress (const IPvXAddress &ip, int port=-1, NatType natType=UNKNOWN_NAT) | |
| Complete constructor. | |
| bool | operator== (const TransportAddress &rhs) const |
| compares this to a given TransportAddress | |
| bool | operator!= (const TransportAddress &rhs) const |
| compares this to a given TransportAddress | |
| bool | operator< (const TransportAddress &rhs) const |
| compares this to a given TransportAddress | |
| bool | operator> (const TransportAddress &rhs) const |
| compares this to a given TransportAddress | |
| bool | operator<= (const TransportAddress &rhs) const |
| compares this to a given TransportAddress | |
| bool | operator>= (const TransportAddress &rhs) const |
| compares this to a given TransportAddress | |
| TransportAddress & | operator= (const TransportAddress &rhs) |
| assigns ip and port of rhs to this->ip and this->port | |
| void | setIp (const IPvXAddress &ip, int port=-1, NatType natType=UNKNOWN_NAT) |
| Sets the ip address, port and NAT type. | |
| void | setAddress (const IPvXAddress &ip, int port=-1, NatType natType=UNKNOWN_NAT) __attribute((deprecated)) |
| Sets the ip address, port and NAT type. | |
| void | appendSourceRoute (const TransportAddress &sourceRoute) |
| Appends a source route to this TransportAddress. | |
| void | clearSourceRoute () |
| Clears the source route of this TransportAddress. | |
| void | setPort (int port) |
| sets this->port to the given port | |
| const IPvXAddress & | getIp () const |
| returns ip address | |
| const IPvXAddress & | getAddress () const __attribute((deprecated)) |
| returns ip address. | |
| int | getPort () const |
| returns port | |
| NatType | getNatType () const |
| returns the type of NAT this node is behind | |
| size_t | getSourceRouteSize () const |
| Returns the length of the source route to reach this node. | |
| const TransportAddressVector & | getSourceRoute () const |
| Returns source route used to reach this node. | |
| bool | isUnspecified () const |
| indicates if TransportAddress is specified | |
| size_t | hash () const |
| creates a hash value of ip and port | |
| virtual TransportAddress * | dup () const |
| returns a copy of the TransportAddress | |
Static Public Attributes | |
| static const ProxTransportAddress | UNSPECIFIED_ADDRESS |
| the unspecified ProxNodeHandle | |
Static Public Attributes inherited from TransportAddress | |
| static const TransportAddress | UNSPECIFIED_NODE |
| TransportAddress without specified ip and port. | |
| static const TransportAddressVector | UNSPECIFIED_NODES |
Protected Attributes | |
| Prox | prox |
Protected Attributes inherited from TransportAddress | |
| IPvXAddress | ip |
| the ip of this TransportAddress object | |
| int | port |
| the port of this TransportAddress object | |
Additional Inherited Members | |
Public Types inherited from TransportAddress | |
| enum | NatType { UNKNOWN_NAT = 0, NO_NAT = 1, FULL_CONE_NAT = 2, PORT_RESTRICTED_NAT = 3, SYMMETRIC_NAT = 4 } |
| typedef UNORDERED_SET < TransportAddress, hashFcn > | Set |
| a hashed set of TransportAddresses | |
Definition at line 81 of file ProxNodeHandle.h.
|
inline |
Definition at line 88 of file ProxNodeHandle.h.
| ProxTransportAddress::ProxTransportAddress | ( | const TransportAddress & | transportAddress | ) |
Definition at line 69 of file ProxNodeHandle.cc.
| ProxTransportAddress::ProxTransportAddress | ( | const TransportAddress & | transportAddress, |
| const Prox & | prox | ||
| ) |
Definition at line 75 of file ProxNodeHandle.cc.
|
inlinevirtual |
Definition at line 92 of file ProxNodeHandle.h.
|
inline |
Definition at line 95 of file ProxNodeHandle.h.
Referenced by operator<<(), and ProxExtractor< ProxTransportAddress >::prox().
|
inline |
Definition at line 94 of file ProxNodeHandle.h.
|
protected |
Definition at line 84 of file ProxNodeHandle.h.
|
static |
the unspecified ProxNodeHandle
Definition at line 87 of file ProxNodeHandle.h.