Photon .NET Client API 4.1.4.8

Public Member Functions | Properties | List of all members
ExitGames.Client.Photon.ITrafficRecorder Interface Reference

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...
 

Detailed Description

Interface for (UDP) traffic capturing.

Member Function Documentation

◆ Record()

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.

Parameters
inBufferBuffer to be sent or received. Check length value for actual content length.
lengthLength of the network data.
incomingIndicates incoming (true) or outgoing (false) traffic.
peerIdThe local peerId for the connection. Defaults to 0xFFFF until assigned by the Server.
connectionThe currently used IPhotonSocket of this Peer. Enables you to track the connection endpoint.

Property Documentation

◆ Enabled

bool ExitGames.Client.Photon.ITrafficRecorder.Enabled
getset

Indicates if the PhotonPeer should call Record or not.


The documentation for this interface was generated from the following file: