C# Class FastNetwork.SocketListener

socket listener
Inheritance: ISocketListener
Afficher le fichier Open project: zhujunxxxxx/FastNetwork Class Usage Examples

Méthodes publiques

Méthode Description
SocketListener ( string name, IPEndPoint endPoint, IHost host ) : System

new

Start ( ) : void

start

Stop ( ) : void

stop

Private Methods

Méthode Description
AcceptAsync ( Socket socket ) : void

accept socket.

AcceptAsyncCompleted ( object sender, SocketAsyncEventArgs e ) : void

async accept socket completed handle.

Method Details

SocketListener() public méthode

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
Résultat System

Start() public méthode

start
public Start ( ) : void
Résultat void

Stop() public méthode

stop
public Stop ( ) : void
Résultat void