C# Class AK.F1.Timing.Server.TcpServer

Inheritance: DisposableBase
Mostrar archivo Open project: simoneb/ak-f1-timing Class Usage Examples

Public Methods

Method Description
Start ( ) : void

Starts the server accepting incoming connection requests.

TcpServer ( IPEndPoint endpoint, ISocketHandler handler, int backlog = 50 ) : System

Initialises a new instance of the AK.F1.Timing.Server.TcpServer class.

Protected Methods

Method Description
DisposeOfManagedResources ( ) : void

Private Methods

Method Description
AcceptAsync ( ) : void
Dispose ( ) : void
DisposeOfAcceptEvent ( ) : void
DisposeOfHandler ( ) : void
DisposeOfListener ( ) : void
InitialiseAcceptEvent ( ) : void
InitialiseListener ( ) : void
OnAcceptEventCompleted ( object sender, SocketAsyncEventArgs e ) : void

Method Details

DisposeOfManagedResources() protected method

protected DisposeOfManagedResources ( ) : void
return void

Start() public method

Starts the server accepting incoming connection requests.
/// Thrown when this instance has been disposed of. /// /// A caller higher in the call stack does not have permission for the requested operation. /// /// Thrown when an error occurred when attempting to bind the underlying socket. ///
public Start ( ) : void
return void

TcpServer() public method

Initialises a new instance of the AK.F1.Timing.Server.TcpServer class.
/// Thrown when or is . /// /// Thrown when is not positive. ///
public TcpServer ( IPEndPoint endpoint, ISocketHandler handler, int backlog = 50 ) : System
endpoint System.Net.IPEndPoint The remote end point to listen on.
handler ISocketHandler The client connection handler.
backlog int The accept connection backlog.
return System