#include <ConnectionPacket.h>
Inheritance diagram for ConnectionPacket::
Public Methods | |
ConnectionPacket () | |
virtual | ~ConnectionPacket () |
ConnectionPacket (unsigned char *rawData) | |
virtual unsigned char * | getRawData () |
Used to encode the packet right before sending data over the wire. More... | |
bool | hasSpecifiedDestination () |
void | setHasSpecifiedDestination (bool) |
bool | avoidCensoredNodes () |
void | setAvoidCensoredNodes (bool) |
bool | doFastRouting () |
void | setDoFastRouting (bool) |
SocketAddress | getSocketAddress () |
void | setSocketAddress (SocketAddress *) |
virtual void | toStream (std::ostream &) |
Gets the length of the whole packet and makes sure the length makes sense. More... | |
Private Attributes | |
bool | m_hasSpecifiedDestination |
true if there is a specified destination. More... | |
bool | m_avoidCensoredNodes |
True if this connection desires to be routed only through non-firewalled nodes. More... | |
bool | m_doFastRouting |
True if fast routing is desired. More... | |
IpAddress | m_ip |
Specified Terminating Peer IP address. More... | |
unsigned short | m_port |
Specified Terminating Peer port number. More... |
Definition at line 6 of file ConnectionPacket.h.
|
Definition at line 16 of file ConnectionPacket.cpp. |
|
Definition at line 9 of file ConnectionPacket.h. |
|
Definition at line 25 of file ConnectionPacket.cpp. |
|
Definition at line 112 of file ConnectionPacket.cpp. Referenced by toStream().
|
|
Definition at line 124 of file ConnectionPacket.cpp. Referenced by toStream().
|
|
Used to encode the packet right before sending data over the wire.
Reimplemented from NpPacket. Definition at line 63 of file ConnectionPacket.cpp. |
|
Definition at line 136 of file ConnectionPacket.cpp. Referenced by toStream().
|
|
Definition at line 100 of file ConnectionPacket.cpp. Referenced by toStream().
|
|
Definition at line 118 of file ConnectionPacket.cpp. |
|
Definition at line 130 of file ConnectionPacket.cpp. |
|
Definition at line 106 of file ConnectionPacket.cpp. |
|
Definition at line 145 of file ConnectionPacket.cpp. |
|
Gets the length of the whole packet and makes sure the length makes sense.
Reimplemented from NpPacket. Definition at line 152 of file ConnectionPacket.cpp. |
|
True if this connection desires to be routed only through non-firewalled nodes.
Definition at line 45 of file ConnectionPacket.h. |
|
True if fast routing is desired.
Definition at line 48 of file ConnectionPacket.h. |
|
true if there is a specified destination.
Definition at line 42 of file ConnectionPacket.h. |
|
Specified Terminating Peer IP address.
Definition at line 51 of file ConnectionPacket.h. |
|
Specified Terminating Peer port number.
Definition at line 54 of file ConnectionPacket.h. |