C# Class ACR_ServerCommunicator.ServerLatencyMeasurer

This class manages measuring the database IPC channel latency between the local server and a remote server.
Show file Open project: ALandFarAway/ALFA-Base-Resources

Public Methods

Method Description
HandleServerPingResponse ( int SourceServerId, string Arguments, ACR_ServerCommunicator Script ) : int

This when a cross-server ping response is received. Its purpose is to compute the channel latency and send a message to that effect to the requesting player.

SendPingToServer ( uint PCObjectId, int ServerId, ACR_ServerCommunicator Script ) : void

This method is called to request an IPC channel latency measurement to a target server.

Method Details

HandleServerPingResponse() public static method

This when a cross-server ping response is received. Its purpose is to compute the channel latency and send a message to that effect to the requesting player.
public static HandleServerPingResponse ( int SourceServerId, string Arguments, ACR_ServerCommunicator Script ) : int
SourceServerId int Supplies the server id of the server /// that completed the ping request.
Arguments string Supplies the serialized state arguments /// string.
Script ACR_ServerCommunicator Supplies the current script object.
return int

SendPingToServer() public static method

This method is called to request an IPC channel latency measurement to a target server.
public static SendPingToServer ( uint PCObjectId, int ServerId, ACR_ServerCommunicator Script ) : void
PCObjectId uint Supplies the PC object id of the /// requesting player.
ServerId int Supplies the server id to send the ping /// request to.
Script ACR_ServerCommunicator Supplies the script object.
return void