C# Class devTool.Server

Mostrar archivo Open project: vans163/LKEmu Class Usage Examples

Public Properties

Property Type Description
ClientHandler Server
shutdownClientHandler bool
shutdownServer bool

Protected Properties

Property Type Description
ConnectionLock object
Connections List
Listener Socket

Public Methods

Method Description
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

Protected Methods

Method Description
OnClientConnection ( ConnectionEventArgs e ) : void
OnClientDisconnect ( ConnectionEventArgs e ) : void
OnDataReceived ( ConnectionDataEventArgs e ) : void
OnDataSent ( ConnectionDataEventArgs e ) : void

Private Methods

Method Description
GameServer_DataReceived ( object sender, ConnectionDataEventArgs e ) : void
NotifyRemoveConnection ( Connection connection ) : void
RemoveConnection ( Connection connection, bool raiseEvent ) : void
acceptCallback ( IAsyncResult result ) : void
readCallback ( IAsyncResult result ) : void

Method Details

CurrentTimeMillis() public static method

public static CurrentTimeMillis ( ) : long
return long

Disconnect() public method

public Disconnect ( Connection connection ) : void
connection Connection
return void

Listen() public method

public Listen ( string bindIP, int port ) : bool
bindIP string
port int
return bool

OnClientConnection() protected method

protected OnClientConnection ( ConnectionEventArgs e ) : void
e ConnectionEventArgs
return void

OnClientDisconnect() protected method

protected OnClientDisconnect ( ConnectionEventArgs e ) : void
e ConnectionEventArgs
return void

OnConnecte() public method

public OnConnecte ( object sender, ConnectionEventArgs e ) : void
sender object
e ConnectionEventArgs
return void

OnDataReceived() protected method

protected OnDataReceived ( ConnectionDataEventArgs e ) : void
e ConnectionDataEventArgs
return void

OnDataSent() protected method

protected OnDataSent ( ConnectionDataEventArgs e ) : void
e ConnectionDataEventArgs
return void

OnDisconnecte() public method

public OnDisconnecte ( object sender, ConnectionEventArgs e ) : void
sender object
e ConnectionEventArgs
return void

Send() public method

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

killServer() public method

public killServer ( ) : void
return void

run() public method

public run ( ) : void
return void

Property Details

ClientHandler public_oe static_oe property

public static Server,devTool ClientHandler
return Server

ConnectionLock protected_oe property

protected object ConnectionLock
return object

Connections protected_oe property

protected List Connections
return List

Listener protected_oe property

protected Socket Listener
return Socket

shutdownClientHandler public_oe static_oe property

public static bool shutdownClientHandler
return bool

shutdownServer public_oe static_oe property

public static bool shutdownServer
return bool