public void Start()
        {
            lock (mutex) {
                Stop ();

                socket = new SsdpSocket ();
                socket.Bind ();
                AsyncReadResult (socket);
            }
        }
Example #2
0
        public void Start()
        {
            lock (mutex) {
                Stop();

                socket = new MulticastSsdpSocket(server.NetworkInterfaceInfo);
                socket.Bind();
                AsyncReadResult(socket);
            }
        }
        public void Start()
        {
            lock (mutex) {
                Stop();

                socket = new SsdpSocket();
                socket.Bind();
                AsyncReadResult(socket);
            }
        }
Example #4
0
 public void Start ()
 {
     lock (mutex) {
         Stop ();
         
         socket = new MulticastSsdpSocket (client.NetworkInterfaceInfo);
         socket.Bind ();
         AsyncReadResult (socket);
     }
 }
Example #5
0
        public void Start(bool startAnnouncers)
        {
            lock (mutex) {
                CheckDisposed ();

                if (started) {
                    throw new InvalidOperationException ("The Server is already started.");
                }

                started = true;
                request_listener.Start ();
                announceSocket = new SsdpSocket ();
                announceSocket.Bind (new IPEndPoint (IPAddress.Any, 0));
                respondSocket = new SsdpSocket (false);
                respondSocket.Bind (new IPEndPoint (IPAddress.Any, Protocol.Port));

                if (startAnnouncers) {
                    foreach (Announcer announcer in announcers.Values) {
                        if (!announcer.Started) {
                            announcer.Start ();
                        }
                    }
                }
            }
        }