C# 클래스 LKCamelot.Server

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

공개 프로퍼티들

프로퍼티 타입 설명
ClientHandler Server
IOThread LKCamelot.io.IOThread
WebServer WebSocketListener
playerHandler LKCamelot.model.PlayerHandler
shutdownClientHandler bool
shutdownServer bool
tickcount Stopwatch
world World

보호된 프로퍼티들

프로퍼티 타입 설명
ConnectionLock object
Connections List
Listener Socket

공개 메소드들

메소드 설명
App_ThreadException ( object sender, UnhandledExceptionEventArgs e ) : void
CurrentTimeMillis ( ) : long
Disconnect ( Connection connection ) : void
Listen ( string bindIP, int port ) : bool
OnConnecte ( object sender, ConnectionEventArgs e ) : void
OnDisconnecte ( object sender, ConnectionEventArgs e ) : void
Send ( Connection connection, byte buffer, int start, int count, SocketFlags flags ) : int
killServer ( ) : void
run ( ) : void

보호된 메소드들

메소드 설명
OnClientConnection ( ConnectionEventArgs e ) : void
OnClientDisconnect ( ConnectionEventArgs e ) : void
OnDataReceived ( ConnectionDataEventArgs e ) : void
OnDataSent ( ConnectionDataEventArgs e ) : void

비공개 메소드들

메소드 설명
GameServer_DataReceived ( object sender, ConnectionDataEventArgs e ) : void
InitRoutine ( ) : void
Main ( string args ) : void
NotifyRemoveConnection ( Connection connection ) : void
RemoveConnection ( Connection connection, bool raiseEvent ) : void
acceptCallback ( IAsyncResult result ) : void
domain_ProcessExit ( object sender, EventArgs e ) : void
readCallback ( IAsyncResult result ) : void

메소드 상세

App_ThreadException() 공개 정적인 메소드

public static App_ThreadException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
리턴 void

CurrentTimeMillis() 공개 정적인 메소드

public static CurrentTimeMillis ( ) : long
리턴 long

Disconnect() 공개 메소드

public Disconnect ( Connection connection ) : void
connection Connection
리턴 void

Listen() 공개 메소드

public Listen ( string bindIP, int port ) : bool
bindIP string
port int
리턴 bool

OnClientConnection() 보호된 메소드

protected OnClientConnection ( ConnectionEventArgs e ) : void
e ConnectionEventArgs
리턴 void

OnClientDisconnect() 보호된 메소드

protected OnClientDisconnect ( ConnectionEventArgs e ) : void
e ConnectionEventArgs
리턴 void

OnConnecte() 공개 메소드

public OnConnecte ( object sender, ConnectionEventArgs e ) : void
sender object
e ConnectionEventArgs
리턴 void

OnDataReceived() 보호된 메소드

protected OnDataReceived ( ConnectionDataEventArgs e ) : void
e ConnectionDataEventArgs
리턴 void

OnDataSent() 보호된 메소드

protected OnDataSent ( ConnectionDataEventArgs e ) : void
e ConnectionDataEventArgs
리턴 void

OnDisconnecte() 공개 메소드

public OnDisconnecte ( object sender, ConnectionEventArgs e ) : void
sender object
e ConnectionEventArgs
리턴 void

Send() 공개 메소드

public Send ( Connection connection, byte buffer, int start, int count, SocketFlags flags ) : int
connection Connection
buffer byte
start int
count int
flags SocketFlags
리턴 int

killServer() 공개 메소드

public killServer ( ) : void
리턴 void

run() 공개 메소드

public run ( ) : void
리턴 void

프로퍼티 상세

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

public static Server,LKCamelot ClientHandler
리턴 Server

ConnectionLock 보호되어 있는 프로퍼티

protected object ConnectionLock
리턴 object

Connections 보호되어 있는 프로퍼티

protected List Connections
리턴 List

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

public static IOThread,LKCamelot.io IOThread
리턴 LKCamelot.io.IOThread

Listener 보호되어 있는 프로퍼티

protected Socket Listener
리턴 Socket

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

public static WebSocketListener,LKCamelot WebServer
리턴 WebSocketListener

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

public static PlayerHandler,LKCamelot.model playerHandler
리턴 LKCamelot.model.PlayerHandler

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

public static bool shutdownClientHandler
리턴 bool

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

public static bool shutdownServer
리턴 bool

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

public static Stopwatch tickcount
리턴 Stopwatch

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

public static World world
리턴 World