mongoc_socket_getnameinfo - Man Page

Synopsis

char *
mongoc_socket_getnameinfo (mongoc_socket_t *sock);

Parameters

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

Info

Jan 27, 2026 1.30.6 libmongoc