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