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

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

Public Methods

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

Protected Methods

Method 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 method

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
return void

CreateListenSocket() protected abstract method

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

DispatchConnection() protected method

protected DispatchConnection ( UvStreamHandle socket ) : void
socket Microsoft.AspNet.Server.Kestrel.Networking.UvStreamHandle
return void

Dispose() public method

public Dispose ( ) : void
return void

Listener() protected method

protected Listener ( ServiceContext serviceContext ) : System
serviceContext ServiceContext
return System

OnConnection() protected abstract method

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
return void

StartAsync() public method

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