Resolve() public method

public Resolve ( string dname ) : MDnsServer
dname string
return MDnsServer
 public void Resolve(string protocol, params IPEndPoint[] endpoints)
 {
     if (!protocol.EndsWith("."))
     {
         if (protocol.EndsWith(".local"))
         {
             protocol += ".";
         }
         else
         {
             protocol += ".local.";
         }
     }
     else
     {
         if (!protocol.EndsWith("local."))
         {
             protocol += "local.";
         }
     }
     protocols.Add(protocol);
     if (client == null)
     {
         client = new MDnsServer(endpoints);
         client.AnswerReceived += client_AnswerReceived;
         client.Resolve(protocol);
     }
     else
     {
         client.Resolve(protocol);
     }
 }
 public void Resolve(string protocol)
 {
     if (!protocol.EndsWith("."))
     {
         if (protocol.EndsWith(".local"))
             protocol += ".";
         else
             protocol += ".local.";
     }
     else
     {
         if (!protocol.EndsWith("local."))
             protocol += "local.";
     }
     protocols.Add(protocol);
     if (client == null)
     {
         client = new MDnsServer();
         client.AnswerReceived += client_AnswerReceived;
         client.Resolve(protocol);
     }
     else
         client.Resolve(protocol);
 }