mongoc_socket_getnameinfo − mongoc_socket_getnameinfo()
char * mongoc_socket_getnameinfo (mongoc_socket_t *sock) BSON_GNUC_WARN_UNUSED_RESULT;
• |
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
2017-present, MongoDB, Inc