---
name: "mongoc_stream_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_stream_t"
---

# mongoc\_stream\_t(3)

## SYNOPSIS

```
typedef struct _mongoc_stream_t mongoc_stream_t
```

**mongoc\_stream\_t** provides a generic streaming IO abstraction based on a struct of pointers interface. The idea is to allow wrappers, perhaps other language drivers, to easily shim their IO system on top of **mongoc\_stream\_t**.

The API for the stream abstraction is currently private and non-extensible.

## STREAM TYPES

There are a number of built in stream types that come with mongoc. The default configuration is a buffered unix stream. If TLS is in use, that in turn is wrapped in a tls stream.

**SEE ALSO:**

```
mongoc_stream_buffered_t
```

```
mongoc_stream_file_t
```

```
mongoc_stream_socket_t
```

```
mongoc_stream_tls_t
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
