public static MDnsClient CreateAndResolve(string protocol)
        {
            MDnsClient client = new MDnsClient(EndPoint /* new IPEndPoint(IPAddress.Any, 5353) */ );
            client.client.BeginJoinGroup(OnJoinGroup, client.client);
            try
            {
                client.Resolve(protocol);
            }
            catch (SocketException)
            {
            }

            return client;
        }
Example #2
0
        public static MDnsClient CreateAndResolve(string protocol)
        {
            MDnsClient client = new MDnsClient(EndPoint /* new IPEndPoint(IPAddress.Any, 5353) */);

            client.client.BeginJoinGroup(OnJoinGroup, client.client);
            try
            {
                client.Resolve(protocol);
            }
            catch (SocketException)
            {
            }

            return(client);
        }