DOKK / manpages / debian 13 / libmongoc-doc / mongoc_socket_destroy.3.en
MONGOC_SOCKET_DESTROY(3) libmongoc MONGOC_SOCKET_DESTROY(3)

void
mongoc_socket_destroy (mongoc_socket_t *sock);


sock: A mongoc_socket_t.

This function releases all resources associated with a mongoc_socket_t. This should be called when you are no longer using the socket. Does nothing if sock is NULL.

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4