Example #1
0
        public DNSServer()
        {
            this.dnsListener = new Utility.WebUtility.UdpConnector(DNS_ENDPOINT);
            this.dnsListener.MessageReceived += this.ParseDNSMessage;

            this.dnsResponder = new Utility.WebUtility.UdpConnector();
        }
Example #2
0
        public LogServer(string connectionPassword = null)
        {
            this.udpListener = new Utility.WebUtility.UdpConnector();
            this.udpListener.MessageReceived += this.MessageReceived;
            this.ServerSessionKey             = (uint)string.Format("{0}{1}", DateTime.Now.ToString(), new Random().NextDouble().ToString()).GetHashCode();

            if (connectionPassword == null || connectionPassword.Length == 0)
            {
                connectionPassword = new Random().Next().ToString("X10");
            }

            Console.WriteLine("Connection password: " + connectionPassword);

            this.ConnectionKeyHash = (uint)connectionPassword.GetHashCode();
        }
Example #3
0
 public DNSClient()
 {
     udpConnector = new Utility.WebUtility.UdpConnector();
     udpConnector.MessageReceived += MessageReceived;
 }