Perl Programming/Keywords/getsockname

The getsockname keyword
The getsockname function returns the sockaddr (socket address) for a given socket NAME and PROTOCOL.