C# Class FastNetwork.SocketListener

socket listener
Inheritance: ISocketListener
Show file Open project: zhujunxxxxx/FastNetwork Class Usage Examples

Public Methods

Method Description
SocketListener ( string name, IPEndPoint endPoint, IHost host ) : System

new

Start ( ) : void

start

Stop ( ) : void

stop

Private Methods

Method Description
AcceptAsync ( Socket socket ) : void

accept socket.

AcceptAsyncCompleted ( object sender, SocketAsyncEventArgs e ) : void

async accept socket completed handle.

Method Details

SocketListener() public method

new
name is null or empty endPoint is null host is null
public SocketListener ( string name, IPEndPoint endPoint, IHost host ) : System
name string
endPoint System.Net.IPEndPoint
host IHost
return System

Start() public method

start
public Start ( ) : void
return void

Stop() public method

stop
public Stop ( ) : void
return void