Table of Contents

Class MultiListener

Namespace
Foundation.Data.Doublets.Cli.Ipc
Assembly
Foundation.Data.Doublets.Cli.dll

Listens on several endpoints at once; see ListenAll(IEnumerable<string>).

public sealed class MultiListener : IIpcListener, IDisposable
Inheritance
MultiListener
Implements
Inherited Members

Constructors

MultiListener(IReadOnlyList<IIpcListener>)

Accepts on every listener; each one runs on a thread of its own.

public MultiListener(IReadOnlyList<IIpcListener> listeners)

Parameters

listeners IReadOnlyList<IIpcListener>

Properties

Endpoint

The endpoint as clients connect to it, such as shm:/tmp/links.

public string Endpoint { get; }

Property Value

string

Endpoints

Every endpoint listened on.

public IReadOnlyList<string> Endpoints { get; }

Property Value

IReadOnlyList<string>

LocalEndPoint

The TCP address, when one of the endpoints is TCP.

public IPEndPoint? LocalEndPoint { get; }

Property Value

IPEndPoint

Methods

Accept()

The next connection; null once the listener is closed or can accept no more.

public IpcStream? Accept()

Returns

IpcStream

Closer()

An action, callable from any thread, that closes the listener and wakes a blocked Accept().

public Action Closer()

Returns

Action

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()