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 IPluginNetworkMethods
Section titled “Methods”ForDevice
Section titled “ForDevice”IDeviceNetwork ForDevice(IDeviceInfo device)The route of device.
ForSite
Section titled “ForSite”IDeviceNetwork ForSite(Guid? siteId)The route of a site; null = the server’s own network.
ListenTcpAsync
Section titled “ListenTcpAsync”Task<ITcpRelay> ListenTcpAsync(int port, string reason, CancellationToken ct)Listens on TCP port on the server’s own network.
ListenUdpAsync
Section titled “ListenUdpAsync”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).