210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
@throw [OFAddressTranslationFailedException
exceptionWithClass: [self class]
socket: nil
host: domain];
answer = [self allocMemoryWithSize: pageSize];
answerLen = res_nsearch(&resState,
[request cStringUsingEncoding: OF_STRING_ENCODING_NATIVE],
ns_c_in, ns_t_srv, answer, (int)pageSize);
if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) ||
(h_errno == NO_DATA)))
return;
if (answerLen < 1 || answerLen > pageSize) {
|
|
|
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
@throw [OFAddressTranslationFailedException
exceptionWithClass: [self class]
socket: nil
host: domain];
answer = [self allocMemoryWithSize: pageSize];
answerLen = res_nsearch(&resState,
[request cStringWithEncoding: OF_STRING_ENCODING_NATIVE],
ns_c_in, ns_t_srv, answer, (int)pageSize);
if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) ||
(h_errno == NO_DATA)))
return;
if (answerLen < 1 || answerLen > pageSize) {
|