1MONGOC_SOCKET_GETSOCKNAME(3)       libmongoc      MONGOC_SOCKET_GETSOCKNAME(3)
2
3
4

SYNOPSIS

6          int
7          mongoc_socket_getsockname (mongoc_socket_t *sock,
8                                     struct sockaddr *addr,
9                                     mongoc_socklen_t *addrlen);
10

PARAMETERS

12sock: A mongoc_socket_t.
13
14addr: A struct sockaddr.
15
16addrlen: A mongoc_socklen_t.
17

DESCRIPTION

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

RETURNS

23       0 if successful, otherwise -1 and errno is set.
24

AUTHOR

26       MongoDB, Inc
27
29       2017-present, MongoDB, Inc
30
31
32
33
341.25.1                           Nov 08, 2023     MONGOC_SOCKET_GETSOCKNAME(3)
Impressum