C# 클래스 SagaLib.ClientManager

파일 보기 프로젝트 열기: Willyham/SagaRO2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
commandTable Packet>.Dictionary
enteredcriarea bool
listener System.Net.Sockets.TcpListener
packetCoordinator Thread
waitingWaitressesCount uint
waitressCountLock Object
waitressHasFinished System.Threading.ManualResetEvent
waitressQueue System.Threading.AutoResetEvent

공개 메소드들

메소드 설명
AddWaitingWaitress ( ) : void
ClientManager ( ) : System
EnterCriticalArea ( ) : void
GetClient ( uint SessionID ) : SagaLib.Client
LeaveCriticalArea ( ) : void
NetworkLoop ( int maxNewConnections ) : void
OnClientDisconnect ( SagaLib.Client client ) : void
RemoveWaitingWaitress ( ) : void
Start ( ) : void
StartNetwork ( int port ) : bool

Starts the network listener socket.

Stop ( ) : void
checkCriticalArea ( ) : void
packetCoordinationLoop ( ) : void

메소드 상세

AddWaitingWaitress() 공개 메소드

public AddWaitingWaitress ( ) : void
리턴 void

ClientManager() 공개 메소드

public ClientManager ( ) : System
리턴 System

EnterCriticalArea() 공개 정적인 메소드

public static EnterCriticalArea ( ) : void
리턴 void

GetClient() 공개 메소드

public GetClient ( uint SessionID ) : SagaLib.Client
SessionID uint
리턴 SagaLib.Client

LeaveCriticalArea() 공개 정적인 메소드

public static LeaveCriticalArea ( ) : void
리턴 void

NetworkLoop() 공개 메소드

public NetworkLoop ( int maxNewConnections ) : void
maxNewConnections int
리턴 void

OnClientDisconnect() 공개 메소드

public OnClientDisconnect ( SagaLib.Client client ) : void
client SagaLib.Client
리턴 void

RemoveWaitingWaitress() 공개 메소드

public RemoveWaitingWaitress ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StartNetwork() 공개 메소드

Starts the network listener socket.
public StartNetwork ( int port ) : bool
port int
리턴 bool

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

checkCriticalArea() 공개 메소드

public checkCriticalArea ( ) : void
리턴 void

packetCoordinationLoop() 공개 메소드

public packetCoordinationLoop ( ) : void
리턴 void

프로퍼티 상세

commandTable 공개적으로 프로퍼티

Command table contains the commands that need to be called when a packet is received. Key will be the packet type
public Dictionary commandTable
리턴 Packet>.Dictionary

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

public static bool enteredcriarea
리턴 bool

listener 공개적으로 프로퍼티

public TcpListener,System.Net.Sockets listener
리턴 System.Net.Sockets.TcpListener

packetCoordinator 공개적으로 프로퍼티

public Thread packetCoordinator
리턴 Thread

waitingWaitressesCount 공개적으로 프로퍼티

public uint waitingWaitressesCount
리턴 uint

waitressCountLock 공개적으로 프로퍼티

public Object waitressCountLock
리턴 Object

waitressHasFinished 공개적으로 프로퍼티

public ManualResetEvent,System.Threading waitressHasFinished
리턴 System.Threading.ManualResetEvent

waitressQueue 공개적으로 프로퍼티

public AutoResetEvent,System.Threading waitressQueue
리턴 System.Threading.AutoResetEvent