---
name: "mongoc_cursor_get_host"
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_cursor_get_host"
---

# mongoc\_cursor\_get\_host(3)

## SYNOPSIS

```
void
mongoc_cursor_get_host (mongoc_cursor_t *cursor, mongoc_host_list_t *host);
```

## PARAMETERS

- •

  **cursor**: A *mongoc\_cursor\_t*.

- •

  **host**: A *mongoc\_host\_list\_t*.

## DESCRIPTION

Fetches the MongoDB host that the cursor is communicating with in the **host** out parameter.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
