C# 클래스 Microsoft.AspNet.Server.Kestrel.Http.Listener

Base class for listeners in Kestrel. Listens for incoming connections
상속: ListenerContext, IDisposable
파일 보기 프로젝트 열기: Starcounter/KestrelHttpServer 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
StartAsync ( ServerAddress address, KestrelThread thread, Task>.Func application ) : System.Threading.Tasks.Task

보호된 메소드들

메소드 설명
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

메소드 상세

ConnectionCallback() 보호된 정적인 메소드

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
리턴 void

CreateListenSocket() 보호된 추상적인 메소드

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

DispatchConnection() 보호된 메소드

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

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Listener() 보호된 메소드

protected Listener ( ServiceContext serviceContext ) : System
serviceContext ServiceContext
리턴 System

OnConnection() 보호된 추상적인 메소드

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
리턴 void

StartAsync() 공개 메소드

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