Exemplo n.º 1
0
 public void Publish()
 {
     publisher = new MDnsServer();
     publisher.QueryReceived += publisher_QueryReceived;
     publisher.StartUdp();
     Renew(500);
 }
Exemplo n.º 2
0
        public void Resolve()
        {
            if (resolver != null)
                resolver.Stop();

            if (HostName == null)
            {
                needsToBeResolvedLater = true;
                return;
            }
            needsToBeResolvedLater = false;
            resolver = new MDnsServer().Resolve(HostName);
            resolver.AnswerReceived += client_AnswerReceived;
            resolver.StartUdp();
            resolved.WaitOne();
        }
Exemplo n.º 3
0
        public void Resolve()
        {
            if (resolver != null)
            {
                resolver.Stop();
            }

            if (HostName == null)
            {
                needsToBeResolvedLater = true;
                return;
            }
            needsToBeResolvedLater = false;
            resolver = new MDnsServer().Resolve(HostName);
            resolver.AnswerReceived += client_AnswerReceived;
            resolver.StartUdp();
            resolved.WaitOne();
        }
Exemplo n.º 4
0
 public void Publish()
 {
     publisher = new MDnsServer();
     publisher.QueryReceived += publisher_QueryReceived;
     publisher.StartUdp();
     Renew(500);
 }