Skip to content
Snippets Groups Projects
Commit 3ba61656 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/modsocket: Implement sockaddr() function to decode raw socket address.

Return tuple of (address_family, net_addr, [port, [extra_data]]). net_addr
is still raw network address as bytes object, but suitable for passing to
inet_ntop() function. At the very least, sockaddr() will separate address
family value from binary socket address (and currently, only AF_INET family
is decoded).
parent 2ae7ced7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment