Provided by: libmongoc-doc_2.2.1-1_all bug

SYNOPSIS

          char *
          mongoc_socket_getnameinfo (mongoc_socket_t *sock);

PARAMETERS

sock: A mongoc_socket_t <>.

DESCRIPTION

       This  is  a  helper  around  getting the local name of a socket. It is a wrapper around getpeername() and
       getnameinfo().

RETURNS

       A newly allocated string that should be freed with  bson_free()  <https://www.mongoc.org/libbson/current/
       bson_free.html>.

Author

       MongoDB, Inc

Copyright

       2009-present, MongoDB, Inc.

2.2.1                                             Dec 11, 2025                      MONGOC_SOCKET_GETNAMEINFO(3)