Match the 'socket' module

Bug #244705 reported by Damien Thébault
2
Affects Status Importance Assigned to Milestone
libasyncns-python
Fix Released
High
Damien Thébault

Bug Description

Syntax and return values should match the ones from the 'socket' module.

Quoting the python documentation [1]:
"getaddrinfo(host, port[, family[, socktype[, proto[, flags]]]])

[...] The getaddrinfo() function returns a list of 5-tuples with the following structure:
(family, socktype, proto, canonname, sockaddr) [...]"

"getnameinfo(sockaddr, flags)

Translate a socket address sockaddr into a 2-tuple (host, port). [...]"

[1] http://www.python.org/doc/lib/module-socket.html

Related branches

Changed in libasyncns-python:
importance: Undecided → High
Changed in libasyncns-python:
assignee: nobody → damien-thebault
status: New → Fix Committed
Changed in libasyncns-python:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.