C# 클래스 tdsm.core.ServerCore.ClientConnection

상속: Connection, IPlayerConnection
파일 보기 프로젝트 열기: DeathCradle/Terraria-s-Dedicated-Server-Mod 1 사용 예제들

공개 메소드들

메소드 설명
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