---
name: "mongoc_server_description_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_server_description_host"
---

# mongoc\_server\_description\_host(3)

## SYNOPSIS

```
mongoc_host_list_t *
mongoc_server_description_host (const mongoc_server_description_t *description);
```

## PARAMETERS

- •

  **description**: A *mongoc\_server\_description\_t*.

## DESCRIPTION

Return the server's host and port. This object is owned by the server description.

## RETURNS

A reference to the server description's *mongoc\_host\_list\_t*, which you must not modify or free.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
