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

Implementation of Listener that uses TCP sockets as its transport.
Inheritance: Listener
显示文件 Open project: Starcounter/KestrelHttpServer

Public Methods

Method Description
TcpListener ( ServiceContext serviceContext ) : Microsoft.AspNet.Server.Kestrel.Infrastructure

Protected Methods

Method Description
CreateListenSocket ( ) : UvStreamHandle

Creates the socket used to listen for incoming connections

OnConnection ( UvStreamHandle listenSocket, int status ) : void

Handle an incoming connection

Method Details

CreateListenSocket() protected method

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

OnConnection() protected method

Handle an incoming connection
protected 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

TcpListener() public method

public TcpListener ( ServiceContext serviceContext ) : Microsoft.AspNet.Server.Kestrel.Infrastructure
serviceContext ServiceContext
return Microsoft.AspNet.Server.Kestrel.Infrastructure