def __init__(me, addr, resolvedproc = None, failedproc = None):
pass
-cdef void _resfunc2(hostent *h, void *arg):
+cdef void _resfunc(hostent *h, void *arg):
cdef SelResolve r
cdef int i
r = <SelResolve>arg
addr.append(inet_ntoa((<in_addr *>h.h_addr_list[i])[0]))
i = i + 1
r.resolved(h.h_name, alias, addr)
-cdef void _resfunc(hostent *h, void *arg):
- PyEval_AcquireLock()
- _resfunc2(h, arg)
- PyEval_ReleaseLock()
bres_exec(NULL)
bres_init(&_sel)