Skip to content

IPluginNetwork

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

The network of a core plugin (ICorePluginContext.Network): the route of any device or site, and listeners on the server’s own network through the same interfaces as relays, so a plugin writes its server once.

public interface IPluginNetwork
IDeviceNetwork ForDevice(IDeviceInfo device)

The route of device.

IDeviceNetwork ForSite(Guid? siteId)

The route of a site; null = the server’s own network.

Task<ITcpRelay> ListenTcpAsync(int port, string reason, CancellationToken ct)

Listens on TCP port on the server’s own network.

Task<IUdpRelay> ListenUdpAsync(int port, string reason, CancellationToken ct)

Listens on UDP port on the server’s own network (the host binds it and opens the firewall).