C# Class Microsoft.AspNet.Server.Kestrel.Http.Listener

Base class for listeners in Kestrel. Listens for incoming connections
Inheritance: ListenerContext, IDisposable
Afficher le fichier Open project: Starcounter/KestrelHttpServer Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
StartAsync ( ServerAddress address, KestrelThread thread, Task>.Func application ) : System.Threading.Tasks.Task

Méthodes protégées

Méthode Description
ConnectionCallback ( UvStreamHandle stream, int status, Exception error, object state ) : void
CreateListenSocket ( ) : UvStreamHandle

Creates the socket used to listen for incoming connections

DispatchConnection ( UvStreamHandle socket ) : void
Listener ( ServiceContext serviceContext ) : System
OnConnection ( UvStreamHandle listenSocket, int status ) : void

Handles an incoming connection

Method Details

ConnectionCallback() protected static méthode

protected static ConnectionCallback ( UvStreamHandle stream, int status, Exception error, object state ) : void
stream Microsoft.AspNet.Server.Kestrel.Networking.UvStreamHandle
status int
error System.Exception
state object
Résultat void

CreateListenSocket() protected abstract méthode

Creates the socket used to listen for incoming connections
protected abstract CreateListenSocket ( ) : UvStreamHandle
Résultat Microsoft.AspNet.Server.Kestrel.Networking.UvStreamHandle

DispatchConnection() protected méthode

protected DispatchConnection ( UvStreamHandle socket ) : void
socket Microsoft.AspNet.Server.Kestrel.Networking.UvStreamHandle
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Listener() protected méthode

protected Listener ( ServiceContext serviceContext ) : System
serviceContext ServiceContext
Résultat System

OnConnection() protected abstract méthode

Handles an incoming connection
protected abstract OnConnection ( UvStreamHandle listenSocket, int status ) : void
listenSocket Microsoft.AspNet.Server.Kestrel.Networking.UvStreamHandle Socket being used to listen on
status int Connection status
Résultat void

StartAsync() public méthode

public StartAsync ( ServerAddress address, KestrelThread thread, Task>.Func application ) : System.Threading.Tasks.Task
address ServerAddress
thread KestrelThread
application Task>.Func
Résultat System.Threading.Tasks.Task