1MONGOC_SOCKET_BIND(3) libmongoc MONGOC_SOCKET_BIND(3)
2
3
4
6 mongoc_socket_bind - mongoc_socket_bind()
7
9 int
10 mongoc_socket_bind (mongoc_socket_t *sock,
11 const 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 This function is a wrapper around the BSD socket bind() interface. It
23 provides better portability between UNIX-like and Microsoft Windows
24 platforms.
25
27 0 on success, -1 on failure and errno is set.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.16.2 Feb 25, 2020 MONGOC_SOCKET_BIND(3)