Exemplo n.º 1
0
 public static MDnsClient CreateAndResolve(string protocol)
 {
     MDnsClient client = new MDnsClient(new IPEndPoint(IPAddress.Any, 5353));
     client.client.MulticastLoopback = true;
     //client.client.MulticastLoopback = true;
     client.client.JoinMulticastGroup(EndPoint.Address, 10);
     client.Resolve(protocol);
     return client;
 }
Exemplo n.º 2
0
        public static MDnsClient CreateAndResolve(string protocol)
        {
            MDnsClient client = new MDnsClient(new IPEndPoint(IPAddress.Any, 5353));

            client.client.MulticastLoopback = true;
            //client.client.MulticastLoopback = true;
            client.client.JoinMulticastGroup(EndPoint.Address, 10);
            client.Resolve(protocol);
            return(client);
        }