You are here : python_3socketsocketgetnameinfo

socket.getnameinfo() - socket

Translate a socket address sockaddr into a 2-tuple (host, port). Depending
on the settings of flags, the result can contain a fully-qualified domain name
or numeric address representation in host.  Similarly, port can contain a
string port name or a numeric port number.


Syntax

socket.getnameinfo(sockaddr, flags)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference