mongoc_socket_new(3)

mongoc_socket_new3

Usage

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.

Overview

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.