#include <PacketLogger.h>

Public Member Functions | |
| virtual void | OnAttach (RakPeerInterface *peer) |
| virtual void | Update (RakPeerInterface *peer) |
| virtual void | OnDirectSocketSend (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
| 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 BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
| virtual void | OnInternalPacket (InternalPacket *internalPacket, unsigned frameNumber, SystemAddress remoteSystemAddress, 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 | SetPrefix (const char *_prefix) |
| Prepend this string to output logs. | |
| virtual void | SetSuffix (const char *_suffix) |
| Append this string to output logs. (newline is useful here). | |
| void PacketLogger::OnAttach | ( | RakPeerInterface * | peer | ) | [virtual] |
Called when the interface is attached
| [in] | peer | the instance of RakPeer that is calling Receive |
Reimplemented from PluginInterface.
| void PacketLogger::OnDirectSocketReceive | ( | const char * | data, | |
| const BitSize_t | bitsUsed, | |||
| SystemAddress | remoteSystemAddress | |||
| ) | [virtual] |
Called on a receive from the socket, per datagram, that does not go through the reliability layer
| [in] | data | The data being sent |
| [in] | bitsUsed | How many bits long data is |
| [in] | remoteSystemAddress | Which system this message is being sent to |
Reimplemented from PluginInterface.
| void PacketLogger::OnInternalPacket | ( | InternalPacket * | internalPacket, | |
| unsigned | frameNumber, | |||
| SystemAddress | remoteSystemAddress, | |||
| RakNetTime | time, | |||
| bool | isSend | |||
| ) | [virtual] |
Called on a send or recieve within the reliability layer
| [in] | internalPacket | The user message, along with all send data. |
| [in] | frameNumber | The number of frames sent or received so far for this player depending on isSend . Indicates the frame of this user message. |
| [in] | remoteSystemAddress | The player we sent or got this packet from |
| [in] | time | The current time as returned by RakNet::GetTime() |
| [in] | isSend | Is this callback representing a send event or receive event? |
Reimplemented from PluginInterface.
| void PacketLogger::Update | ( | RakPeerInterface * | peer | ) | [virtual] |
Update is called every time a packet is checked for .
| [in] | peer | - the instance of RakPeer that is calling Receive |
Reimplemented from PluginInterface.
Reimplemented in ThreadsafePacketLogger.
1.5.7.1