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

  
 
  

home | help
MONGOC_SOCKET_NEW(3)		    libmongoc		    MONGOC_SOCKET_NEW(3)

SYNOPSIS
	mongoc_socket_t *
	mongoc_socket_new (int domain,
			   int type,
			   int protocol);

PARAMETERS
     * domain: An int containing the address family such as AF_INET.

     * type: An int containing the socket type such as SOCK_STREAM.

     * protocol: A protocol subset, typically 0.

DESCRIPTION
     Creates  a new mongoc_socket_t structure. This calls socket() underneath to
     create a network socket.

RETURNS
     A new socket if successful, otherwise NULL and errno  is  set.  The  result
     should be freed with mongoc_socket_destroy() when no longer in use.

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026		    MONGOC_SOCKET_NEW(3)

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

home | help