Public Member Functions |
| BootstrapNodeHandle () |
| BootstrapNodeHandle (const BootstrapNodeHandle &handle) |
| BootstrapNodeHandle (const NodeHandle &handle, BootstrapNodePrioType prio=CACHE) |
| BootstrapNodeHandle (const OverlayKey &key, const IPvXAddress &ip, int port, BootstrapNodePrioType prio=CACHE) |
BootstrapNodePrioType | getNodePrio () const |
void | setNodePrio (BootstrapNodePrioType nodePrio) |
simtime_t | getLastPing () const |
void | setLastPing (simtime_t lastPing) |
Public Member Functions inherited from NodeHandle |
| NodeHandle () |
| Constructs an unspecified NodeHandle.
|
virtual | ~NodeHandle () |
| Standard destructor.
|
| NodeHandle (const NodeHandle &handle) |
| Copy constructor.
|
| NodeHandle (const OverlayKey &key, const IPvXAddress &ip, int port) |
| Complete constructor.
|
| NodeHandle (const TransportAddress &ta) |
| Constructor to generate a NodeHandle from a TransportAddress.
|
| NodeHandle (const OverlayKey &key, const TransportAddress &ta) |
| Constructor to generate a NodeHandle from an existing OverlayKey and TransportAddress.
|
bool | operator== (const NodeHandle &rhs) const |
| compares this NodeHandle to another given NodeHandle
|
bool | operator!= (const NodeHandle &rhs) const |
| compares this NodeHandle to another given NodeHandle
|
bool | operator< (const NodeHandle &rhs) const |
| compares this to a given NodeHandle
|
bool | operator> (const NodeHandle &rhs) const |
| compares this to a given NodeHandle
|
bool | operator<= (const NodeHandle &rhs) const |
| compares this to a given NodeHandle
|
bool | operator>= (const NodeHandle &rhs) const |
| compares this to a given NodeHandle
|
NodeHandle & | operator= (const NodeHandle &rhs) |
| assigns key, ip and port of rhs to this->key, this->ip and this->port
|
void | setKey (const OverlayKey &key) |
| saves given key to NodeHandle::key
|
const OverlayKey & | getKey () const |
| returns key of this NodeHandle
|
bool | isUnspecified () const |
| indicates if this NodeHandle is specified
|
virtual void | netPack (cCommBuffer *b) |
| serializes the object into a buffer
|
virtual void | netUnpack (cCommBuffer *b) |
| deserializes the object from a buffer
|
virtual TransportAddress * | dup () const |
| returns a copy of the NodeHandle
|
| 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.
|
size_t | hash () const |
| creates a hash value of ip and port
|
Definition at line 33 of file BootstrapNodeHandle.h.