private const int kSsdpSearchDelay = 100; // milliseconds public Interface(IPAddress aAddress, ISsdpNotifyHandler aHandler) { iAddress = aAddress; iListenerUnicast = new SsdpListenerUnicast(aHandler); iListenerNotify = new SsdpListenerMulticast(); iListenerNotify.Add(aHandler); }
public Finder(IPAddress aInterface, IConsole aConsole, string aUglyName) { iInterface = aInterface; iConsole = aConsole; iUglyName = aUglyName; iMutex = new Mutex(); iIsFound = new ManualResetEvent(false); iIsBootModeSet = new ManualResetEvent(false); iIsRebootAccepted = new ManualResetEvent(false); iIsByeByeReceived = new ManualResetEvent(false); iIsAliveReceived = new ManualResetEvent(false); iListener = new SsdpListenerMulticast(); iListener.Add(this); iListener.Start(iInterface); }
public Form1(Helper aHelper) { InitializeComponent(); iDevices = new Dictionary <string, Device>(); iMutex = new Mutex(); iListenerMulticast = new SsdpListenerMulticast(); iListenerMulticast.Add(new MySsdpNotifyHandler(this, true)); iListenerUnicast = new SsdpListenerUnicast(new MySsdpNotifyHandler(this, false)); iHelper = aHelper; iHelper.Stack.SetStack(this); }