1MONGOC_SOCKET_GETSOCKNAME(3) libmongoc MONGOC_SOCKET_GETSOCKNAME(3)
2
3
4
6 int
7 mongoc_socket_getsockname (mongoc_socket_t *sock,
8 struct sockaddr *addr,
9 mongoc_socklen_t *addrlen);
10
12 • sock: A mongoc_socket_t.
13
14 • addr: A struct sockaddr.
15
16 • addrlen: A mongoc_socklen_t.
17
19 Retrieves the socket name for sock. The result is stored in addr. ad‐
20 drlen should be the size of the addr when calling this.
21
23 0 if successful, otherwise -1 and errno is set.
24
26 MongoDB, Inc
27
29 2017-present, MongoDB, Inc
30
31
32
33
341.25.1 Nov 08, 2023 MONGOC_SOCKET_GETSOCKNAME(3)