summaryrefslogtreecommitdiff
path: root/src/network/core/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/packet.h')
-rw-r--r--src/network/core/packet.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/network/core/packet.h b/src/network/core/packet.h
index 38cd528ef..50a3f5cde 100644
--- a/src/network/core/packet.h
+++ b/src/network/core/packet.h
@@ -42,14 +42,17 @@ struct Packet {
PacketSize size;
/** The current read/write position in the packet */
PacketSize pos;
- /** The buffer of this packet */
- byte buffer[SEND_MTU];
+ /** The buffer of this packet, of basically variable length up to SEND_MTU. */
+ byte *buffer;
+
private:
+ /** Socket we're associated with. */
NetworkSocketHandler *cs;
public:
Packet(NetworkSocketHandler *cs);
Packet(PacketType type);
+ ~Packet();
/* Sending/writing of packets */
void PrepareToSend();