Class ClientConnection

Namespace
Game.Server
Assembly
Game.dll

A serverside record of a client.

public class ClientConnection
Inheritance
ClientConnection
Inherited Members

Properties

Address

The IP address of the client.

public IPAddress Address { get; set; }

Property Value

IPAddress

Bridge

Communication bridge with the client, either a direct in-memory link or one established by network packets.

public IClientBridge Bridge { get; set; }

Property Value

IClientBridge

Id

ID of the client. Client 0 is typically a host in a LAN game.

public int Id { get; set; }

Property Value

int

InputSnapshots

The server keeps track of the last 64 input snapshots from the client, partly for the purposes of rollback, partly for cheating.

public ClientCommands[] InputSnapshots { get; }

Property Value

ClientCommands[]

State

Connection state of the client.

public GameSessionState State { get; set; }

Property Value

GameSessionState

Methods

AddInputSnapshot(ClientCommands)

public void AddInputSnapshot(ClientCommands snapshot)

Parameters

snapshot ClientCommands

GetInputSnapshotInPast(int)

public ClientCommands GetInputSnapshotInPast(int pastSteps = 1)

Parameters

pastSteps int

Returns

ClientCommands

GetLatestInputSnapshot()

public ClientCommands GetLatestInputSnapshot()

Returns

ClientCommands

Renew(IPAddress, IClientBridge)

public void Renew(IPAddress address, IClientBridge bridge)

Parameters

address IPAddress
bridge IClientBridge