Index: src/XMPPConnection.m ================================================================== --- src/XMPPConnection.m +++ src/XMPPConnection.m @@ -54,11 +54,11 @@ #import "namespaces.h" #import -@interface XMPPConnection () - (void)xmpp_tryNextSRVRecord; - (bool)xmpp_parseBuffer: (const void *)buffer length: (size_t)length; - (void)xmpp_startStream; @@ -293,14 +293,14 @@ [_socket asyncConnectToHost: record.target port: record.port]; } -- (void)resolver: (OFDNSResolver *)resolver - didResolveDomainName: (OFString *)domainName - response: (OFDNSResponse *)response - exception: (id)exception +- (void)resolver: (OFDNSResolver *)resolver + didPerformQuery: (OFString *)domainName + response: (OFDNSResponse *)response + exception: (id)exception { OFMutableArray *records = [OFMutableArray array]; if (exception != nil) { [_delegates @@ -345,16 +345,16 @@ [_socket asyncConnectToHost: _server port: _port]; else { OFString *SRVDomain = [_domainToASCII stringByPrependingString: @"_xmpp-client._tcp."]; - OFDNSRequest *request = [OFDNSRequest - requestWithHost: SRVDomain - recordClass: OF_DNS_RESOURCE_RECORD_CLASS_IN - recordType: OF_DNS_RESOURCE_RECORD_TYPE_SRV]; - [[OFThread DNSResolver] asyncPerformRequest: request - delegate: self]; + OFDNSQuery *query = [OFDNSQuery + queryWithDomainName: SRVDomain + DNSClass: OF_DNS_CLASS_IN + recordType: OF_DNS_RECORD_TYPE_SRV]; + [[OFThread DNSResolver] asyncPerformQuery: query + delegate: self]; } objc_autoreleasePoolPop(pool); }