C# Class tdsm.core.ServerCore.ClientConnection

Inheritance: Connection, IPlayerConnection
Afficher le fichier Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
FreeSectionBuffer ( ) : void
HandleClosure ( SocketError err ) : void
MessageSendCompleted ( ) : void
ProcessRead ( ) : void
SerializeMessage ( Message msg ) : ArraySegment

Private Methods

Méthode Description
ClientConnection ( ) : System
FreeSectionBuffer ( NewNetMessage buf ) : void
TakeSectionBuffer ( ) : NewNetMessage
TimeoutLoop ( ) : void

Method Details

AssignSlot() public méthode

public AssignSlot ( int id ) : bool
id int
Résultat bool

ClientConnection() public méthode

public ClientConnection ( Socket socket, int slot ) : System
socket System.Net.Sockets.Socket
slot int
Résultat System

DecodeMessages() public méthode

public DecodeMessages ( byte readBuffer, int &totalData, int &msgLen ) : void
readBuffer byte
totalData int
msgLen int
Résultat void

DisconnectInProgress() public méthode

public DisconnectInProgress ( ) : bool
Résultat bool

FreeSectionBuffer() protected méthode

protected FreeSectionBuffer ( ) : void
Résultat void

HandleClosure() protected méthode

protected HandleClosure ( SocketError err ) : void
err SocketError
Résultat void

HasConnected() public méthode

public HasConnected ( ) : bool
Résultat bool

Kick() public méthode

public Kick ( string reason, bool announce = true ) : void
reason string
announce bool
Résultat void

MessageSendCompleted() protected méthode

protected MessageSendCompleted ( ) : void
Résultat void

ProcessRead() protected méthode

protected ProcessRead ( ) : void
Résultat void

ResetTimeout() public méthode

public ResetTimeout ( ) : void
Résultat void

Send() public méthode

public Send ( byte bytes ) : void
bytes byte
Résultat void

SendSection() public méthode

public SendSection ( int x, int y ) : void
x int
y int
Résultat void

SerializeMessage() protected méthode

protected SerializeMessage ( Message msg ) : ArraySegment
msg Message
Résultat ArraySegment