#include <Port.h> [code]
Inherits Protocols::BitTorrent::Packets::PacketBase.
Inheritance diagram for Protocols::BitTorrent::Packets::Port:


The Port packet payload contains a 2 byte big-endian integer specifying DHT listening port of the peer.
Definition at line 38 of file Port.h.
Public Member Functions | |
| QString | name () const |
| Returns the name of the PacketBase type the dynamic object belongs to. | |
| auto_ptr< DataBase > | copy () const |
| Virtual copy constructor. | |
| Port (quint16 listenPort=0) | |
| quint16 | listenPort () const |
| Getter for the packet field listenPort. | |
| void | setListenPort (quint16) |
| Setter for the packet field listenPort. | |
Protected Member Functions | |
| void | readPayload (BinaryReader &) |
| Reads the packet's payload fields. | |
| void | writePayload (BinaryWriter &) const |
| Writes the packet's payload fields. | |
| Q_DECLARE_SHARED_DATA (Data) | |
Private Types | |
| enum | Constants { PayloadLength = 2 } |
Classes | |
| class | Data |
| Port packet's private data. More... | |
|
|
|
|
|
|
|
|
Virtual copy constructor.
Implements Protocols::BitTorrent::Packets::PacketBase. |
|
|
Getter for the packet field listenPort.
|
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::BitTorrent::Packets::PacketBase. |
|
|
|
|
|
Reads the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. |
|
|
Setter for the packet field listenPort.
|
|
|
Writes the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. |