C# Class SharpUV.TcpServer

Inheritance: UvHandle
Datei anzeigen Open project: gigi81/sharpuv

Public Methods

Method Description
DisconnectAllClients ( ) : void
StartListening ( IPEndPoint endpoint, Action callback = null ) : void
TcpServer ( ) : System
TcpServer ( Loop loop ) : System

Protected Methods

Method Description
CreateClientSocket ( ) : TcpServerSocket
Dispose ( bool disposing ) : void
InitDelegates ( ) : void
OnClientConnected ( UvArgs args ) : void
OnClose ( UvArgs args ) : void

Private Methods

Method Description
AddClient ( ) : TcpServerSocket
OnClientConnected ( IntPtr server, int status ) : void
RemoveClient ( TcpServerSocket client ) : void

Method Details

CreateClientSocket() protected method

protected CreateClientSocket ( ) : TcpServerSocket
return TcpServerSocket

DisconnectAllClients() public method

public DisconnectAllClients ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InitDelegates() protected method

protected InitDelegates ( ) : void
return void

OnClientConnected() protected method

protected OnClientConnected ( UvArgs args ) : void
args UvArgs
return void

OnClose() protected method

protected OnClose ( UvArgs args ) : void
args UvArgs
return void

StartListening() public method

public StartListening ( IPEndPoint endpoint, Action callback = null ) : void
endpoint System.Net.IPEndPoint
callback Action
return void

TcpServer() public method

public TcpServer ( ) : System
return System

TcpServer() public method

public TcpServer ( Loop loop ) : System
loop Loop
return System