public StartCombined ( uint aSubnet ) : |
||
aSubnet | uint | |
Результат |
public static void Main(string[] args) { InitParams initParams = new InitParams { MsearchTimeSecs = 1, UseLoopbackNetworkInterface = true }; Library lib = new Library(); lib.Initialise(initParams); lib.StartCombined(); new Runner(); lib.Close(); }
public Runner() { iInitParams = new InitParams(); iInitParams.DvUpnpWebServerPort = 0; iInitParams.LogOutput = new MessageListener(Log); iInitParams.SubnetListChangedListener = new ChangedListener(SubnetListChanged); iInitParams.SubnetAddedListener = new NetworkAdapterListener(SubnetAdded); iInitParams.SubnetRemovedListener = new NetworkAdapterListener(SubnetRemoved); iInitParams.NetworkAdapterChangedListener = new NetworkAdapterListener(NetworkAdapterChanged); iLibrary = Library.Create(iInitParams); Library.SetDebugLevel(Library.DebugLevel.Trace); SubnetList subnetList = new SubnetList(); NetworkAdapter nif = subnetList.SubnetAt(0); uint subnet = nif.Subnet(); subnetList.Dispose(); iLibrary.StartCombined(subnet); }
public static void Main(string[] args) { InitParams initParams = new InitParams { MsearchTimeSecs = 1, UseLoopbackNetworkInterface = true }; Library lib = new Library(); lib.Initialise(initParams); lib.StartCombined(); Console.Write("TestCpDeviceDvCs - starting\n"); DeviceBasic device = new DeviceBasic(); CpDeviceDv cpDevice = new CpDeviceDv(device.Device()); TestBasicCp cp = new TestBasicCp(cpDevice); cp.TestActions(); cp.TestSubscriptions(); cpDevice.RemoveRef(); device.Dispose(); Console.Write("TestCpDeviceDvCs - completed\n"); lib.Close(); }