341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
|
if (sock != nil)
@throw [OFAlreadyConnectedException
exceptionWithClass: [self class]];
sock = [[OFTCPSocket alloc] init];
if (server)
[sock connectToHost: [self XMPP_IDNAToASCII: server]
port: port];
else {
@try {
SRVLookup = [XMPPSRVLookup
lookupWithDomain: domainToASCII];
} @catch (id e) {
}
|
|
|
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
|
if (sock != nil)
@throw [OFAlreadyConnectedException
exceptionWithClass: [self class]];
sock = [[OFTCPSocket alloc] init];
if (server)
[sock connectToHost: server
port: port];
else {
@try {
SRVLookup = [XMPPSRVLookup
lookupWithDomain: domainToASCII];
} @catch (id e) {
}
|