PyDocs

Nav

Networking and Interprocess Communication

socket.getsockname

socket

method of socketnot WASI
  • socket.getsockname()
getsockname() -> address info

Return the address of the local endpoint. The format depends on the
address family. For IPv4 sockets, the address info is a pair
(hostaddr, port). For IPv6 sockets, the address info is a 4-tuple
(hostaddr, port, flowinfo, scope_id).
0 Examples
No examples for socket/socket.getsockname.
See Also
No see-alsos for socket/socket.getsockname
0 Notes
No notes for socket.getsockname