Home | Trees | Index | Help |
|
---|
|
DNS resolever with SRV record support.
Function Summary | |
---|---|
list of (int , int , int , str , (str , int )) |
Resolve host and port into addrinfo struct. |
list of dns.rdtypes.IN.SRV |
Reorder SRV records using their priorities and weights. |
list of (str ,`int`) |
Resolve service domain to server name and port number using SRV records. |
list of dns.rdtypes.IN.SRV |
Randomly reorder SRV records using their weights. |
Variable Summary | |
---|---|
str |
__revision__ = '$Id: resolver.py 503 2005-01-03 21:59:36...
|
SRE_Pattern |
ip_re = \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
dict |
service_aliases = {'xmpp-server': ('jabber-server', 'jab...
|
dns
,
encodings.idna
,
random
,
re
,
socket
Function Details |
---|
getaddrinfo(host, port, family=0, socktype=1, proto=0, allow_cname=True)Resolve host and port into addrinfo struct. Does the same thing as socket.getaddrinfo, but using
|
reorder_srv(records)Reorder SRV records using their priorities and weights.
|
resolve_srv(domain, service, proto='tcp')Resolve service domain to server name and port number using SRV records. A built-in service alias table will be used to lookup also some obsolete record names.
|
shuffle_srv(records)Randomly reorder SRV records using their weights.
|
Variable Details |
---|
__revision__
|
ip_re
|
service_aliases
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:40 2005 | http://epydoc.sf.net |