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; }
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); }