212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
|
socket: nil
host: domain];
answer = [self allocMemoryWithSize: of_pagesize];
answerLen = res_nsearch(&resState, [request cString], ns_c_in,
ns_t_srv, answer, (int)of_pagesize);
if (answerLen < 1 || answerLen > of_pagesize)
@throw [OFAddressTranslationFailedException
newWithClass: isa
socket: nil
host: domain];
if (ns_initparse(answer, answerLen, &handle))
@throw [OFAddressTranslationFailedException
newWithClass: isa
socket: nil
host: domain];
|
>
>
>
|
>
|
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
|
socket: nil
host: domain];
answer = [self allocMemoryWithSize: of_pagesize];
answerLen = res_nsearch(&resState, [request cString], ns_c_in,
ns_t_srv, answer, (int)of_pagesize);
if ((answerLen == -1) && (h_errno == HOST_NOT_FOUND))
return;
if (answerLen < 1 || answerLen > of_pagesize) {
@throw [OFAddressTranslationFailedException
newWithClass: isa
socket: nil
host: domain];
}
if (ns_initparse(answer, answerLen, &handle))
@throw [OFAddressTranslationFailedException
newWithClass: isa
socket: nil
host: domain];
|