TcpListenerPrimary Class

An implementation of Microsoft.AspNetCore.Server.Kestrel.Internal.Http.ListenerPrimary using TCP sockets.

Namespace
Microsoft.AspNetCore.Server.Kestrel.Internal.Http
Assemblies
  • Microsoft.AspNetCore.Server.Kestrel

Syntax

public class TcpListenerPrimary : ListenerPrimary, IAsyncDisposable
class Microsoft.AspNetCore.Server.Kestrel.Internal.Http.TcpListenerPrimary

Constructors

TcpListenerPrimary(Microsoft.AspNetCore.Server.Kestrel.Internal.ServiceContext)
public TcpListenerPrimary(ServiceContext serviceContext)

Methods

CreateListenSocket()

Creates the socket used to listen for incoming connections

Return type:Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvStreamHandle
protected override UvStreamHandle CreateListenSocket()
OnConnection(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvStreamHandle, System.Int32)

Handles an incoming connection

Arguments:
protected override void OnConnection(UvStreamHandle listenSocket, int status)