示例#1
0
            private const int kSsdpSearchDelay  = 100; // milliseconds

            public Interface(IPAddress aAddress, ISsdpNotifyHandler aHandler)
            {
                iAddress         = aAddress;
                iListenerUnicast = new SsdpListenerUnicast(aHandler);
                iListenerNotify  = new SsdpListenerMulticast();
                iListenerNotify.Add(aHandler);
            }
示例#2
0
 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);
 }
示例#3
0
        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);
        }