1MONGOC_SOCKET_BIND(3)              libmongoc             MONGOC_SOCKET_BIND(3)
2
3
4

SYNOPSIS

6          int
7          mongoc_socket_bind (mongoc_socket_t *sock,
8                              const 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       This  function  is a wrapper around the BSD socket bind() interface. It
20       provides better portability between  UNIX-like  and  Microsoft  Windows
21       platforms.
22

RETURNS

24       0 on success, -1 on failure and errno is set.
25

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.25.1                           Nov 08, 2023            MONGOC_SOCKET_BIND(3)
Impressum