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

NAME

6       mongoc_socket_getsockname - mongoc_socket_getsockname()
7

SYNOPSIS

9          int
10          mongoc_socket_getsockname (mongoc_socket_t *sock,
11                                     struct sockaddr *addr,
12                                     mongoc_socklen_t *addrlen);
13

PARAMETERS

15sock: A mongoc_socket_t.
16
17addr: A struct sockaddr.
18
19addrlen: A mongoc_socklen_t.
20

DESCRIPTION

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

RETURNS

26       0 if successful, otherwise -1 and errno is set.
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.21.1                           Mar 02, 2022     MONGOC_SOCKET_GETSOCKNAME(3)
Impressum