Table of Contents

Class TcpListener

Namespace
MarymoorStudios.Core.Rpc.Net
Assembly
MarymoorStudios.Core.Rpc.Net.dll

Manages the lifetime of a listening endpoint.

public sealed class TcpListener : IPromiseDisposable
Inheritance
TcpListener
Implements
Inherited Members

Remarks

Call DisposeAsync() to terminate the listening endpoint and remove it from the TCP scope that created it. Removing a listening endpoint does NOT destroy incoming connections that have already been established from that endpoint nor does it terminate the TCP scope that created it. To do either of those things call DisposeAsync() on the TCP scope directly.

Properties

LocalEndPoint

The local endpoint tuple while connected, otherwise null.

public IPEndPoint? LocalEndPoint { get; }

Property Value

IPEndPoint

Methods

DisposeAsync()

public Promise DisposeAsync()

Returns

Promise