C# 클래스 GameMachine.Core.AsyncTcpClient

상속: Client
파일 보기 프로젝트 열기: gamemachine/gamemachine

공개 프로퍼티들

프로퍼티 타입 설명
entityQueue ConcurrentQueue
running bool

공개 메소드들

메소드 설명
AsyncTcpClient ( string address, int port, string playerId, int authtoken ) : System
Connect ( ) : void
CreateClientMessage ( ) : io.gamemachine.messages.ClientMessage
Deserialize ( Stream inc ) : io.gamemachine.messages.ClientMessage
GetBytesIn ( ) : long
GetBytesOut ( ) : long
IsRunning ( ) : bool
ReceivedPlayerConnected ( ) : bool
Reconnect ( ) : void
ResetBytes ( ) : void
Send ( byte bytes ) : void
SendEntities ( List entities ) : void
SendEntity ( io.gamemachine.messages.Entity entity ) : void
SendPlayerConnect ( ) : void
SetConnectionType ( int connectionType ) : void
Start ( ) : void
Stop ( ) : void
Write ( byte bytes ) : void

비공개 메소드들

메소드 설명
AsyncTcpClient ( int port ) : System
ConnectCallback ( IAsyncResult result ) : void
Connected ( ) : void
ReadCallback ( IAsyncResult result ) : void
Serialize ( io.gamemachine.messages.ClientMessage message ) : byte[]
WriteCallback ( IAsyncResult result ) : void

메소드 상세

AsyncTcpClient() 공개 메소드

public AsyncTcpClient ( string address, int port, string playerId, int authtoken ) : System
address string
port int
playerId string
authtoken int
리턴 System

Connect() 공개 메소드

public Connect ( ) : void
리턴 void

CreateClientMessage() 공개 메소드

public CreateClientMessage ( ) : io.gamemachine.messages.ClientMessage
리턴 io.gamemachine.messages.ClientMessage

Deserialize() 공개 메소드

public Deserialize ( Stream inc ) : io.gamemachine.messages.ClientMessage
inc Stream
리턴 io.gamemachine.messages.ClientMessage

GetBytesIn() 공개 메소드

public GetBytesIn ( ) : long
리턴 long

GetBytesOut() 공개 메소드

public GetBytesOut ( ) : long
리턴 long

IsRunning() 공개 메소드

public IsRunning ( ) : bool
리턴 bool

ReceivedPlayerConnected() 공개 메소드

public ReceivedPlayerConnected ( ) : bool
리턴 bool

Reconnect() 공개 메소드

public Reconnect ( ) : void
리턴 void

ResetBytes() 공개 메소드

public ResetBytes ( ) : void
리턴 void

Send() 공개 메소드

public Send ( byte bytes ) : void
bytes byte
리턴 void

SendEntities() 공개 메소드

public SendEntities ( List entities ) : void
entities List
리턴 void

SendEntity() 공개 메소드

public SendEntity ( io.gamemachine.messages.Entity entity ) : void
entity io.gamemachine.messages.Entity
리턴 void

SendPlayerConnect() 공개 메소드

public SendPlayerConnect ( ) : void
리턴 void

SetConnectionType() 공개 메소드

public SetConnectionType ( int connectionType ) : void
connectionType int
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

Write() 공개 메소드

public Write ( byte bytes ) : void
bytes byte
리턴 void

프로퍼티 상세

entityQueue 공개적으로 정적으로 프로퍼티

public static ConcurrentQueue entityQueue
리턴 ConcurrentQueue

running 공개적으로 프로퍼티

public bool running
리턴 bool