agsXMPP.XmppClientConnection.ResolveSrv C# (CSharp) Method

ResolveSrv() private method

Resolves the connection host of a xmpp domain when SRV records are set
private ResolveSrv ( ) : void
return void
        private void ResolveSrv()
        {
#if WIN32
            try
            {
                // get the machine's default DNS servers
                string[] dnsServers = IPConfigurationInformation.DnsServers;

                // Take the 1st DNS Server for our query
                IPAddress dnsServer = IPAddress.Parse(dnsServers[0]);

                // Information
                string queryDomain = SRV_RECORD_PREFIX + this.Server;
                //QuerySrvRecord(dnsServer, queryDomain, DnsType.SRV);

                _SRVRecords = Resolver.SRVLookup(queryDomain, dnsServer);

                SetConnectServerFromSRVRecords();
            }
            catch (Exception ex)
            {
                FireOnError(this, ex);                
            }
#endif
        }