public static SsdpClient CreateAndResolve(string protocol) { SsdpClient client = new SsdpClient(0); client.Resolve(protocol); return(client); }
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); }