Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MONGOC_SOCKET_CLOSE(3)		   libmongoc		MONGOC_SOCKET_CLOSE(3)

SYNOPSIS
	  int
	  mongoc_socket_close (mongoc_socket_t *socket);

PARAMETERS
        socket: A mongoc_socket_t.

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

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

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025		MONGOC_SOCKET_CLOSE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_socket_close&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help