C# 클래스 GameMachine.Core.AsyncUdpClient

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

공개 프로퍼티들

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

공개 메소드들

메소드 설명
AsyncUdpClient ( string host, int port, string _playerId, int authtoken, bool measure = false ) : System
CreateClientMessage ( ) : 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 ( Entity entity ) : void
SendPlayerConnect ( ) : void
SetConnectionType ( int connectionType ) : void
Start ( ) : void
Stop ( ) : void
receiveData ( ) : void

비공개 메소드들

메소드 설명
Deserialize ( byte bytes ) : io.gamemachine.messages.ClientMessage
SendCallback ( IAsyncResult ar ) : void
Serialize ( io.gamemachine.messages.ClientMessage message ) : byte[]
dataReady ( IAsyncResult ar ) : void

메소드 상세

AsyncUdpClient() 공개 메소드

public AsyncUdpClient ( string host, int port, string _playerId, int authtoken, bool measure = false ) : System
host string
port int
_playerId string
authtoken int
measure bool
리턴 System

CreateClientMessage() 공개 메소드

public CreateClientMessage ( ) : io.gamemachine.messages.ClientMessage
리턴 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 ( Entity entity ) : void
entity 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

receiveData() 공개 메소드

public receiveData ( ) : void
리턴 void

프로퍼티 상세

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

public static ConcurrentQueue entityQueue
리턴 ConcurrentQueue

running 공개적으로 프로퍼티

public bool running
리턴 bool