Table of Contents

Interface IServerListener

Namespace
Shard.Network
Assembly
Shard.Network.dll

A bound transport listener accepting connections on a single endpoint. Mirrors the Java ServerListener implemented by QuicheListener.

public interface IServerListener : IAsyncDisposable
Inherited Members

Properties

LocalEndPoint

The local endpoint the listener is bound to.

EndPoint LocalEndPoint { get; }

Property Value

EndPoint

Methods

CloseAsync(IToClientPacket?)

Stop accepting and close all connections after offering the packet to each current client. The first close request owns the packet and every caller observes the same completion.

Task CloseAsync(IToClientPacket? farewell = null)

Parameters

farewell IToClientPacket

Returns

Task