C# Class tdsm.core.ServerCore.ClientConnection

Inheritance: Connection, IPlayerConnection
Mostra file Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod Class Usage Examples

Public Methods

Method Description
AssignSlot ( int id ) : bool
ClientConnection ( Socket socket, int slot ) : System
DecodeMessages ( byte readBuffer, int &totalData, int &msgLen ) : void
DisconnectInProgress ( ) : bool
HasConnected ( ) : bool
Kick ( string reason, bool announce = true ) : void
ResetTimeout ( ) : void
Send ( byte bytes ) : void
SendSection ( int x, int y ) : void

Protected Methods

Method Description
FreeSectionBuffer ( ) : void
HandleClosure ( SocketError err ) : void
MessageSendCompleted ( ) : void
ProcessRead ( ) : void
SerializeMessage ( Message msg ) : ArraySegment

Private Methods

Method Description
ClientConnection ( ) : System
FreeSectionBuffer ( NewNetMessage buf ) : void
TakeSectionBuffer ( ) : NewNetMessage
TimeoutLoop ( ) : void

Method Details

AssignSlot() public method

public AssignSlot ( int id ) : bool
id int
return bool

ClientConnection() public method

public ClientConnection ( Socket socket, int slot ) : System
socket System.Net.Sockets.Socket
slot int
return System

DecodeMessages() public method

public DecodeMessages ( byte readBuffer, int &totalData, int &msgLen ) : void
readBuffer byte
totalData int
msgLen int
return void

DisconnectInProgress() public method

public DisconnectInProgress ( ) : bool
return bool

FreeSectionBuffer() protected method

protected FreeSectionBuffer ( ) : void
return void

HandleClosure() protected method

protected HandleClosure ( SocketError err ) : void
err SocketError
return void

HasConnected() public method

public HasConnected ( ) : bool
return bool

Kick() public method

public Kick ( string reason, bool announce = true ) : void
reason string
announce bool
return void

MessageSendCompleted() protected method

protected MessageSendCompleted ( ) : void
return void

ProcessRead() protected method

protected ProcessRead ( ) : void
return void

ResetTimeout() public method

public ResetTimeout ( ) : void
return void

Send() public method

public Send ( byte bytes ) : void
bytes byte
return void

SendSection() public method

public SendSection ( int x, int y ) : void
x int
y int
return void

SerializeMessage() protected method

protected SerializeMessage ( Message msg ) : ArraySegment
msg Message
return ArraySegment