1MONGOC_SOCKET_BIND(3)          MongoDB C Driver          MONGOC_SOCKET_BIND(3)
2
3
4

NAME

6       mongoc_socket_bind - mongoc_socket_bind()
7

SYNOPSIS

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

PARAMETERS

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

DESCRIPTION

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

RETURNS

27       0 on success, -1 on failure and errno is set.
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.14.0                           Feb 22, 2019            MONGOC_SOCKET_BIND(3)
Impressum