#include <oskit/net/socket.h>oskit_error_t oskit_socket_getsockname(oskit_socket_t *s, [out] struct oskit_sockaddr *asa, [in/out] oskit_size_t *anamelen);
getsockname returns the current name for the specified socket.
- s
- The socket whose name is to be determined.
- name
- Contains the name of the socket upon return.
- anamelen
- Initially, the amount of space pointed to by name, on return it will contain the amount actually used, i.e., the actual size of the name.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.