C# Класс tdsm.core.ServerCore.ClientConnection

Наследование: Connection, IPlayerConnection
Показать файл Открыть проект Примеры использования класса

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

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

Защищенные методы

Метод Описание
FreeSectionBuffer ( ) : void
HandleClosure ( SocketError err ) : void
MessageSendCompleted ( ) : void
ProcessRead ( ) : void
SerializeMessage ( Message msg ) : ArraySegment

Приватные методы

Метод Описание
ClientConnection ( ) : System
FreeSectionBuffer ( NewNetMessage buf ) : void
TakeSectionBuffer ( ) : NewNetMessage
TimeoutLoop ( ) : void

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

AssignSlot() публичный Метод

public AssignSlot ( int id ) : bool
id int
Результат bool

ClientConnection() публичный Метод

public ClientConnection ( Socket socket, int slot ) : System
socket System.Net.Sockets.Socket
slot int
Результат System

DecodeMessages() публичный Метод

public DecodeMessages ( byte readBuffer, int &totalData, int &msgLen ) : void
readBuffer byte
totalData int
msgLen int
Результат void

DisconnectInProgress() публичный Метод

public DisconnectInProgress ( ) : bool
Результат bool

FreeSectionBuffer() защищенный Метод

protected FreeSectionBuffer ( ) : void
Результат void

HandleClosure() защищенный Метод

protected HandleClosure ( SocketError err ) : void
err SocketError
Результат void

HasConnected() публичный Метод

public HasConnected ( ) : bool
Результат bool

Kick() публичный Метод

public Kick ( string reason, bool announce = true ) : void
reason string
announce bool
Результат void

MessageSendCompleted() защищенный Метод

protected MessageSendCompleted ( ) : void
Результат void

ProcessRead() защищенный Метод

protected ProcessRead ( ) : void
Результат void

ResetTimeout() публичный Метод

public ResetTimeout ( ) : void
Результат void

Send() публичный Метод

public Send ( byte bytes ) : void
bytes byte
Результат void

SendSection() публичный Метод

public SendSection ( int x, int y ) : void
x int
y int
Результат void

SerializeMessage() защищенный Метод

protected SerializeMessage ( Message msg ) : ArraySegment
msg Message
Результат ArraySegment