1MONGOC_SOCKET_CLOSE(3)             libmongoc            MONGOC_SOCKET_CLOSE(3)
2
3
4

NAME

6       mongoc_socket_close - mongoc_socket_close()
7

SYNOPSIS

9          int
10          mongoc_socket_close (mongoc_socket_t *socket);
11

PARAMETERS

13       ยท socket: A mongoc_socket_t.
14

DESCRIPTION

16       This function is a wrapper around the BSD socket shutdown() and close()
17       functions, and their Windows equivalents. The socket is shut down  only
18       if  the  current  process  is  the  same as the process that opened the
19       socket. Regardless, the socket is then closed.
20

RETURNS

22       0 on success, -1 on failure  to  close  the  socket.  On  failure,  the
23       socket's errno is set; retrieve it with mongoc_socket_errno().
24

AUTHOR

26       MongoDB, Inc
27
29       2017-present, MongoDB, Inc
30
31
32
33
341.16.2                           Feb 25, 2020           MONGOC_SOCKET_CLOSE(3)
Impressum