Class MultiListener
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
listenersIReadOnlyList<IIpcListener>
Properties
Endpoint
The endpoint as clients connect to it, such as shm:/tmp/links.
public string Endpoint { get; }
Property Value
Endpoints
Every endpoint listened on.
public IReadOnlyList<string> Endpoints { get; }
Property Value
LocalEndPoint
The TCP address, when one of the endpoints is TCP.
public IPEndPoint? LocalEndPoint { get; }
Property Value
Methods
Accept()
The next connection; null once the listener is closed or can accept no more.
public IpcStream? Accept()
Returns
Closer()
An action, callable from any thread, that closes the listener and wakes a blocked Accept().
public Action Closer()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()