Table of Contents

Interface IIpcListener

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

Accepts incoming IpcStream connections on one endpoint, or several (issue #140).

public interface IIpcListener : IDisposable
Inherited Members

Properties

Endpoint

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

string Endpoint { get; }

Property Value

string

Endpoints

Every endpoint listened on.

IReadOnlyList<string> Endpoints { get; }

Property Value

IReadOnlyList<string>

LocalEndPoint

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

IPEndPoint? LocalEndPoint { get; }

Property Value

IPEndPoint

Methods

Accept()

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

IpcStream? Accept()

Returns

IpcStream

Closer()

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

Action Closer()

Returns

Action