#include <PacketLogger.h>
Inheritance diagram for PacketLogger:
Public Member Functions | |
virtual void | OnAttach (RakPeerInterface *peer) |
virtual void | OnDirectSocketSend (const char *data, const unsigned bitsUsed, PlayerID remoteSystemID) |
Events on low level sends and receives. These functions may be called from different threads at the same time. | |
virtual void | OnDirectSocketReceive (const char *data, const unsigned bitsUsed, PlayerID remoteSystemID) |
virtual void | OnInternalPacket (InternalPacket *internalPacket, unsigned frameNumber, PlayerID remoteSystemID, RakNetTime time, bool isSend) |
virtual void | LogHeader (void) |
Logs out a header for all the data. | |
virtual void | WriteLog (const char *str) |
Override this to log strings to wherever. Log should be threadsafe. | |
virtual void | SetPrintID (bool print) |
virtual void | SetPrintAcks (bool print) |
Protected Member Functions | |
char * | IDTOString (unsigned char Id) |
char * | BaseIDTOString (unsigned char Id) |
virtual char * | UserIDTOString (unsigned char Id) |
Protected Attributes | |
RakPeerInterface * | rakPeer |
bool | printId |
bool | printAcks |
|
Called when the interface is attached
Reimplemented from PluginInterface. Reimplemented in PacketFileLogger. |
|
Called on a receive from the socket, per datagram, that does not go through the reliability layer
Reimplemented from PluginInterface. |
|
Called on a send or recieve within the reliability layer
Reimplemented from PluginInterface. |