154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
- (uint16_t)port
{
return _port;
}
- (OFString*)target
{
OF_GETTER(_target, YES)
}
@end
@implementation XMPPSRVLookup
+ lookupWithDomain: (OFString*)domain
{
return [[[self alloc] initWithDomain: domain] autorelease];
|
|
|
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
- (uint16_t)port
{
return _port;
}
- (OFString*)target
{
OF_GETTER(_target, true)
}
@end
@implementation XMPPSRVLookup
+ lookupWithDomain: (OFString*)domain
{
return [[[self alloc] initWithDomain: domain] autorelease];
|
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
[_domain release];
[super dealloc];
}
- (OFString*)domain;
{
OF_GETTER(_domain, YES)
}
- (void)XMPP_lookup
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
unsigned char *answer = NULL;
size_t pageSize = [OFSystemInfo pageSize];
|
|
|
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
[_domain release];
[super dealloc];
}
- (OFString*)domain;
{
OF_GETTER(_domain, true)
}
- (void)XMPP_lookup
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
unsigned char *answer = NULL;
size_t pageSize = [OFSystemInfo pageSize];
|
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
|
if ([subListCopy count] == 0) {
[subListCopy release];
subListCopy = nil;
listIter = listIter->next;
if (listIter == NULL)
done = YES;
}
return ret;
}
- (void)reset
{
listIter = NULL;
[subListCopy release];
subListCopy = nil;
done = NO;
}
@end
|
|
|
|
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
|
if ([subListCopy count] == 0) {
[subListCopy release];
subListCopy = nil;
listIter = listIter->next;
if (listIter == NULL)
done = true;
}
return ret;
}
- (void)reset
{
listIter = NULL;
[subListCopy release];
subListCopy = nil;
done = false;
}
@end
|