1MONGOC_SOCKET_GETNAMEINFO(3)       libmongoc      MONGOC_SOCKET_GETNAMEINFO(3)
2
3
4

NAME

6       mongoc_socket_getnameinfo - mongoc_socket_getnameinfo()
7

SYNOPSIS

9          char *
10          mongoc_socket_getnameinfo (mongoc_socket_t *sock) BSON_GNUC_WARN_UNUSED_RESULT;
11

PARAMETERS

13sock: A mongoc_socket_t.
14

DESCRIPTION

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

RETURNS

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

AUTHOR

23       MongoDB, Inc
24
26       2017-present, MongoDB, Inc
27
28
29
30
311.20.0                           Nov 18, 2021     MONGOC_SOCKET_GETNAMEINFO(3)
Impressum