DOKK / manpages / debian 13 / libmongoc-doc / mongoc_socket_getnameinfo.3.en
MONGOC_SOCKET_GETNAMEINFO(3) libmongoc MONGOC_SOCKET_GETNAMEINFO(3)

char *
mongoc_socket_getnameinfo (mongoc_socket_t *sock);


sock: A mongoc_socket_t.

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

A newly allocated string that should be freed with bson_free().

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4