Ubuntu Manpages

  • sock: A mongoc_socket_t.
  • addr: A struct sockaddr.
  • addrlen: A mongoc_socklen_t.

Retrieves the socket name for sock. The result is stored in addr. addrlen should be the size of the addr when calling this.

0 if successful, otherwise -1 and errno is set.

MongoDB, Inc

2017-present, MongoDB, Inc