libasyncns
index
/usr/src/RPM/BUILD/libasyncns-python-0.7/libasyncns.so

 
Classes
       
__builtin__.object
Asyncns
Query
AddrInfoQuery
NameInfoQuery
ResQuery

 
class AddrInfoQuery(Query)
    The class for getaddrinfo() calls.
 
 
Method resolution order:
AddrInfoQuery
Query
__builtin__.object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
get_done(...)
get_done()
Return the result of the query.
The result is a list of tuples:
(host, port) for IPv4, (host, port, flowinfo, scopeid) for IPv6.

Methods inherited from Query:
cancel(...)
cancel()
Cancels the query.
is_done(...)
is_done()
Tells if the request has been completed.

Data descriptors inherited from Query:
userdata
Attribute available to store user data.

Data and other attributes inherited from Query:
__new__ = <built-in method __new__ of type object at 0x2b439bd7c540>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Asyncns(__builtin__.object)
    The session class.
Asyncns(n_proc = 5)
 
  Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
get_fd(...)
get_fd()
Return the UNIX file descriptor to select() for readability on.
Use this function to integrate libasyncns with your custom main loop.
get_next(...)
get_next()
Return the next completed query object.
If no query has been completed yet, return None.
Please note that you need to run wait() before this function
will return sensible data.
get_nqueries(...)
get_nqueries()
Return the number of query objects (completed or not).
getaddrinfo(...)
getaddrinfo(host, proto, family = AF_UNSPEC, socktype = 0, proto = 0, flags = 0)
Issue a name to address query.
The arguments are compatible with the ones of the socket module.
The function returns a new AddrInfoQuery object.
getnameinfo(...)
getnameinfo(sockaddr, flags = 0)
Issue an address to name query.
The arguments are compatible with the ones of the socket module.
The function returns a new NameInfoQuery object.
res_query(...)
res_query(dname, class, type)
Issue an resolver query.
The arguments are compatible with the ones of libc's res_query(3).
The function returns a new ResQuery object.
wait(...)
wait(block = True)
Process pending events.
After this function is called you can get the next completed query
object(s) using get_next(). If block is True wait until at least
one response has been processed. If block is False, process
all pending responses and return.

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x2b439bd7c200>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class NameInfoQuery(Query)
    The class for getnameinfo() calls.
 
 
Method resolution order:
NameInfoQuery
Query
__builtin__.object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
get_done(...)
get_done()
Return the result of the query.
The result is a tuple of 2 items.
The first item is the host name, the second one is the service name.

Methods inherited from Query:
cancel(...)
cancel()
Cancels the query.
is_done(...)
is_done()
Tells if the request has been completed.

Data descriptors inherited from Query:
userdata
Attribute available to store user data.

Data and other attributes inherited from Query:
__new__ = <built-in method __new__ of type object at 0x2b439bd7c540>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class Query(__builtin__.object)
    A generic query class.
 
  Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
cancel(...)
cancel()
Cancels the query.
is_done(...)
is_done()
Tells if the request has been completed.

Data descriptors defined here:
userdata
Attribute available to store user data.

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x2b439bd7c540>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
class ResQuery(Query)
    The class for res_query() calls.
 
 
Method resolution order:
ResQuery
Query
__builtin__.object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
get_done(...)
get_done()
Return the result of the query.
The result is a list of dictionaries with the following keys:
'weight', 'pref', 'host', 'port', 'length', 'ttl', 'type', 'class'

Methods inherited from Query:
cancel(...)
cancel()
Cancels the query.
is_done(...)
is_done()
Tells if the request has been completed.

Data descriptors inherited from Query:
userdata
Attribute available to store user data.

Data and other attributes inherited from Query:
__new__ = <built-in method __new__ of type object at 0x2b439bd7c540>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
Data
        ns_c_2 = 2
ns_c_any = 255
ns_c_chaos = 3
ns_c_hs = 4
ns_c_in = 1
ns_c_invalid = 0
ns_c_max = 65536
ns_c_none = 254
ns_t_a = 1
ns_t_a6 = 38
ns_t_aaaa = 28
ns_t_afsdb = 18
ns_t_any = 255
ns_t_atma = 34
ns_t_axfr = 252
ns_t_cert = 37
ns_t_cname = 5
ns_t_dname = 39
ns_t_eid = 31
ns_t_gpos = 27
ns_t_hinfo = 13
ns_t_invalid = 0
ns_t_isdn = 20
ns_t_ixfr = 251
ns_t_key = 25
ns_t_kx = 36
ns_t_loc = 29
ns_t_maila = 254
ns_t_mailb = 253
ns_t_max = 65536
ns_t_mb = 7
ns_t_md = 3
ns_t_mf = 4
ns_t_mg = 8
ns_t_minfo = 14
ns_t_mr = 9
ns_t_mx = 15
ns_t_naptr = 35
ns_t_nimloc = 32
ns_t_ns = 2
ns_t_nsap = 22
ns_t_nsap_ptr = 23
ns_t_null = 10
ns_t_nxt = 30
ns_t_opt = 41
ns_t_ptr = 12
ns_t_px = 26
ns_t_rp = 17
ns_t_rt = 21
ns_t_sig = 24
ns_t_sink = 40
ns_t_soa = 6
ns_t_srv = 33
ns_t_tsig = 250
ns_t_txt = 16
ns_t_wks = 11
ns_t_x25 = 19
ns_t_zxfr = 256