Ejemplo n.º 1
0
        public static SsdpClient CreateAndResolve(string protocol)
        {
            SsdpClient client = new SsdpClient(0);

            client.Resolve(protocol);
            return(client);
        }
Ejemplo n.º 2
0
 public void Resolve(string protocol, params IPEndPoint[] endpoints)
 {
     protocols.Add(protocol);
     if (client == null)
     {
         client = new SsdpClient(0, endpoints);
         client.ResponseReceived += client_AnswerReceived;
         client.StartUdp();
     }
     client.Resolve(protocol);
 }