C# Класс ACR_ServerCommunicator.ServerLatencyMeasurer

This class manages measuring the database IPC channel latency between the local server and a remote server.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

HandleServerPingResponse() публичный статический Метод

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.
Результат int

SendPingToServer() публичный статический Метод

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.
Результат void