---
name: "mongoc_socket_t"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_socket_t"
---

# mongoc\_socket\_t(3)

Portable socket abstraction

## SYNOPSIS

```
#include <mongoc/mongoc.h>
typedef struct _mongoc_socket_t mongoc_socket_t
```

## SYNOPSIS

This structure provides a socket abstraction that is friendlier for portability than BSD sockets directly. Inconsistencies between Linux, various BSDs, Solaris, and Windows are handled here.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
