Interface for (UDP) traffic capturing. More...
Public Member Functions | |
void | Record (byte[] inBuffer, int length, bool incoming, short peerId, IPhotonSocket connection) |
Implement to record network traffic. Called by PhotonPeer for each UDP message sent and received. More... | |
Properties | |
bool | Enabled [get, set] |
Indicates if the PhotonPeer should call Record or not. More... | |
Interface for (UDP) traffic capturing.
void ExitGames.Client.Photon.ITrafficRecorder.Record | ( | byte[] | inBuffer, |
int | length, | ||
bool | incoming, | ||
short | peerId, | ||
IPhotonSocket | connection | ||
) |
Implement to record network traffic. Called by PhotonPeer for each UDP message sent and received.
The buffer will not contain Ethernet Header, IP, UDP level data. Only the payload received by the client.
It is advised to not use NetworkSimulation when recording traffic. The recording is done on the timing of actual receive- and send-calls and internal simulation would offset the timing.
inBuffer | Buffer to be sent or received. Check length value for actual content length. |
length | Length of the network data. |
incoming | Indicates incoming (true) or outgoing (false) traffic. |
peerId | The local peerId for the connection. Defaults to 0xFFFF until assigned by the Server. |
connection | The currently used IPhotonSocket of this Peer. Enables you to track the connection endpoint. |
|
getset |
Indicates if the PhotonPeer should call Record or not.