예제 #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;
 }
예제 #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);
        }