|
GNE
0.75.0
|
The RateAdjustPacket is sent automatically by GNE when you change rates in the PacketStream. More...
#include <RateAdjustPacket.h>
Public Types | |
|
typedef SmartPtr < RateAdjustPacket > | sptr |
| typedef WeakPtr< RateAdjustPacket > | wptr |
Public Types inherited from GNE::Packet | |
| typedef SmartPtr< Packet > | sptr |
| typedef WeakPtr< Packet > | wptr |
Public Member Functions | |
| virtual int | getSize () const |
| Returns the current size of this packet in bytes. | |
| virtual void | writePacket (Buffer &raw) const |
| Writes the packet to the given Buffer. | |
| virtual void | readPacket (Buffer &raw) |
| Reads this packet from the given Buffer. | |
Public Member Functions inherited from GNE::Packet | |
| Packet * | makeClone () const |
| Returns a newly allocated exact copy of this packet, using the PacketParser::clonePacket function. | |
| int | getType () const |
| Returns the type of this instance. | |
Public Attributes | |
| guint32 | rate |
| The requested rate. | |
Static Public Attributes | |
| static const int | ID = 3 |
| The ID for this type of packet. | |
Additional Inherited Members | |
Protected Member Functions inherited from GNE::Packet | |
| Packet (int id) | |
| Constructs a packet with the given ID. | |
| Packet (const Packet &o) | |
| Copy constructor. | |
| Packet & | operator= (const Packet &rhs) |
| Copy operator you can use to help you in creating your own. | |
The RateAdjustPacket is sent automatically by GNE when you change rates in the PacketStream.
It is not a packet that you send, or that you will see – it is used only internally by GNE.