MONGOC_SOCKET_NEW(3) | MongoDB C Driver | MONGOC_SOCKET_NEW(3) |
mongoc_socket_new - mongoc_socket_new()
mongoc_socket_t * mongoc_socket_new (int domain, int type, int protocol);
Creates a new mongoc_socket_t structure. This calls socket() underneath to create a network socket.
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.
MongoDB, Inc
2017-present, MongoDB, Inc
February 23, 2019 | 1.14.0 |