예제 #1
0
        public static SsdpClient CreateAndResolve(string protocol)
        {
            SsdpClient client = new SsdpClient(0);

            client.Resolve(protocol);
            return(client);
        }
예제 #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);
 }