mongoc_host_list_t (3) - Linux Manuals

mongoc_host_list_t: typedef struct

NAME

mongoc_host_list_t - typedef struct {
mongoc_host_list_t *next;
char                host [BSON_HOST_NAME_MAX 1];
char                host_and_port [BSON_HOST_NAME_MAX 7];
uint16_t            port;
int                 family;
void               *padding [4]; } mongoc_host_list_t;

SYNOPSIS

typedef struct
{
   mongoc_host_list_t *next;
   char                host [BSON_HOST_NAME_MAX + 1];
   char                host_and_port [BSON_HOST_NAME_MAX + 7];
   uint16_t            port;
   int                 family;
   void               *padding [4];
} mongoc_host_list_t;

DESCRIPTION

The host and port of a MongoDB server. Can be part of a linked list: for example the return value of mongoc_uri_get_hosts when multiple hosts are provided in the MongoDB URI.

COLOPHON

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

SEE ALSO

mongoc_uri_get_hosts and mongoc_cursor_get_host \&.