mongoc_socket_getnameinfo3
Usage
char * mongoc_socket_getnameinfo (mongoc_socket_t *sock);
Parameters
- •
-
sock: A mongoc_socket_t.
Overview
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().
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.