Function netio_listen_socket_endpoint

Function Documentation

size_t netio_listen_socket_endpoint(struct netio_listen_socket *socket, struct sockaddr_storage *sa)

Retrieve the local endpoint address and store it in the sockaddr_storage sa. The function returns the lenght of the address.

Parameters:
  • socket – An unbuffered listen socket

  • sa – structure storing the local endpoint address