77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
string = string.uppercaseString;
if ([string isEqual: @"IN"])
DNSClass = OF_DNS_CLASS_IN;
else {
@try {
DNSClass = (of_dns_class_t)[string decimalValue];
} @catch (OFInvalidFormatException *e) {
@throw [OFInvalidArgumentException exception];
}
}
objc_autoreleasePoolPop(pool);
|
|
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
string = string.uppercaseString;
if ([string isEqual: @"IN"])
DNSClass = OF_DNS_CLASS_IN;
else {
@try {
DNSClass = (of_dns_class_t)string.decimalValue;
} @catch (OFInvalidFormatException *e) {
@throw [OFInvalidArgumentException exception];
}
}
objc_autoreleasePoolPop(pool);
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
else if ([string isEqual: @"SRV"])
recordType = OF_DNS_RECORD_TYPE_SRV;
else if ([string isEqual: @"ALL"])
recordType = OF_DNS_RECORD_TYPE_ALL;
else {
@try {
recordType =
(of_dns_record_type_t)[string decimalValue];
} @catch (OFInvalidFormatException *e) {
@throw [OFInvalidArgumentException exception];
}
}
objc_autoreleasePoolPop(pool);
|
|
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
else if ([string isEqual: @"SRV"])
recordType = OF_DNS_RECORD_TYPE_SRV;
else if ([string isEqual: @"ALL"])
recordType = OF_DNS_RECORD_TYPE_ALL;
else {
@try {
recordType =
(of_dns_record_type_t)string.decimalValue;
} @catch (OFInvalidFormatException *e) {
@throw [OFInvalidArgumentException exception];
}
}
objc_autoreleasePoolPop(pool);
|