---
name: "mongoc_stream_get_base_stream"
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_get_base_stream"
---

# mongoc\_stream\_get\_base\_stream(3)

## SYNOPSIS

```
mongoc_stream_t *
mongoc_stream_get_base_stream (mongoc_stream_t *stream);
```

## PARAMETERS

- •

  **stream**: A *mongoc\_stream\_t*.

This function shall fetch the underlying stream for streams that wrap a base stream. Such implementations include *mongoc\_stream\_buffered\_t* and *mongoc\_stream\_tls\_t*.

## RETURNS

A *mongoc\_stream\_t* or **NULL**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
