58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
return @"RP";
case OFDNSRecordTypeAAAA:
return @"AAAA";
case OFDNSRecordTypeSRV:
return @"SRV";
case OFDNSRecordTypeAll:
return @"all";
default:
return [OFString stringWithFormat: @"%u", recordType];
}
}
OFDNSClass
OFDNSClassParseName(OFString *string)
|
>
>
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
return @"RP";
case OFDNSRecordTypeAAAA:
return @"AAAA";
case OFDNSRecordTypeSRV:
return @"SRV";
case OFDNSRecordTypeAll:
return @"all";
case OFDNSRecordTypeURI:
return @"URI";
default:
return [OFString stringWithFormat: @"%u", recordType];
}
}
OFDNSClass
OFDNSClassParseName(OFString *string)
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
recordType = OFDNSRecordTypeRP;
else if ([string isEqual: @"AAAA"])
recordType = OFDNSRecordTypeAAAA;
else if ([string isEqual: @"SRV"])
recordType = OFDNSRecordTypeSRV;
else if ([string isEqual: @"ALL"])
recordType = OFDNSRecordTypeAll;
else {
recordType =
(OFDNSRecordType)[string unsignedLongLongValueWithBase: 0];
}
objc_autoreleasePoolPop(pool);
|
>
>
|
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
recordType = OFDNSRecordTypeRP;
else if ([string isEqual: @"AAAA"])
recordType = OFDNSRecordTypeAAAA;
else if ([string isEqual: @"SRV"])
recordType = OFDNSRecordTypeSRV;
else if ([string isEqual: @"ALL"])
recordType = OFDNSRecordTypeAll;
else if ([string isEqual: @"URI"])
recordType = OFDNSRecordTypeURI;
else {
recordType =
(OFDNSRecordType)[string unsignedLongLongValueWithBase: 0];
}
objc_autoreleasePoolPop(pool);
|