mongoc_socket_new - Man Page

mongoc_socket_new()

Synopsis

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

Parameters

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

Info

May 09, 2023 1.23.4 libmongoc