1MONGOC_SOCKET_GETNAMEINFO(3) libmongoc MONGOC_SOCKET_GETNAMEINFO(3)
2
3
4
6 mongoc_socket_getnameinfo - mongoc_socket_getnameinfo()
7
9 char *
10 mongoc_socket_getnameinfo (mongoc_socket_t *sock) BSON_GNUC_WARN_UNUSED_RESULT;
11
13 • sock: A mongoc_socket_t.
14
16 This is a helper around getting the local name of a socket. It is a
17 wrapper around getpeername() and getnameinfo().
18
20 A newly allocated string that should be freed with bson_free().
21
23 MongoDB, Inc
24
26 2017-present, MongoDB, Inc
27
28
29
30
311.20.0 Nov 18, 2021 MONGOC_SOCKET_GETNAMEINFO(3)