Skip to content

IIncomingConnection

Interface in Oadm.Sdk.Sites · Oadm.Sdk.dll

An accepted TCP connection.

public interface IIncomingConnection : IAsyncDisposable

Extends IAsyncDisposable

IPEndPoint Remote { get; }

The device that connected, as the node (or the server) saw it.

Guid? SiteId { get; }

The site it came through; null on the server’s own network.

Stream Stream { get; }

Both directions. A read returns 0 when the device ended its side; disposing the stream (or the connection) closes the connection.