diff options
Diffstat (limited to 'src/netcomputer.cpp')
| -rw-r--r-- | src/netcomputer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/netcomputer.cpp b/src/netcomputer.cpp index c9b0339..b326f92 100644 --- a/src/netcomputer.cpp +++ b/src/netcomputer.cpp @@ -28,6 +28,8 @@ #include "packet.h" #include "state.h" +#include "utils/logger.h" + NetComputer::NetComputer(ConnectionHandler *handler, ENetPeer *peer): mHandler(handler), mPeer(peer) @@ -47,6 +49,8 @@ void NetComputer::disconnect(const std::string &reason) void NetComputer::send(const Packet *p) { + LOG_INFO("Sending packet of length " << p->length, 2); + // Create a reliable packet. ENetPacket *packet = enet_packet_create(p->data, p->length, ENET_PACKET_FLAG_RELIABLE); |
