rpm  5.4.15
Data Fields
mongo Struct Reference

#include <rpmio/mongo.h>

Collaboration diagram for mongo:
Collaboration graph
[legend]

Data Fields

mongo_host_portprimary
 Primary connection info. More...
 
mongo_replica_setreplica_set
 replica_set object if connected to a replica set. More...
 
SOCKET sock
 Socket file descriptor. More...
 
int flags
 Flags on this connection object. More...
 
int conn_timeout_ms
 Connection timeout in milliseconds. More...
 
int op_timeout_ms
 Read and write timeout in milliseconds. More...
 
int max_bson_size
 Largest BSON object allowed on this connection. More...
 
bson_bool_t connected
 Connection status. More...
 
mongo_write_concernwrite_concern
 The default write concern. More...
 
mongo_error_t err
 Most recent driver error code. More...
 
int errcode
 Most recent errno or WSAGetLastError(). More...
 
char errstr [128]
 String version of error. More...
 
int lasterrcode
 getlasterror code from the server. More...
 
char lasterrstr [128]
 getlasterror string from the server. More...
 

Detailed Description

Definition at line 188 of file mongo.h.

Field Documentation

int mongo::conn_timeout_ms

Connection timeout in milliseconds.

Definition at line 193 of file mongo.h.

bson_bool_t mongo::connected
mongo_error_t mongo::err
int mongo::errcode

Most recent errno or WSAGetLastError().

Definition at line 200 of file mongo.h.

Referenced by __mongo_set_error(), and mongo_clear_errors().

char mongo::errstr[128]

String version of error.

Definition at line 201 of file mongo.h.

Referenced by __mongo_set_error(), and mongo_clear_errors().

int mongo::flags

Flags on this connection object.

Definition at line 192 of file mongo.h.

int mongo::lasterrcode

getlasterror code from the server.

Definition at line 202 of file mongo.h.

Referenced by mongo_clear_errors(), mongo_get_server_err(), and mongo_set_last_error().

char mongo::lasterrstr[128]

getlasterror string from the server.

Definition at line 203 of file mongo.h.

Referenced by mongo_clear_errors(), mongo_get_server_err_string(), and mongo_set_last_error().

int mongo::max_bson_size

Largest BSON object allowed on this connection.

Definition at line 195 of file mongo.h.

Referenced by mongo_bson_valid(), mongo_check_is_master(), mongo_init(), mongo_insert_batch(), and mongo_replica_set_check_host().

int mongo::op_timeout_ms

Read and write timeout in milliseconds.

Definition at line 194 of file mongo.h.

Referenced by mongo_env_socket_connect(), mongo_get_op_timeout(), and mongo_set_op_timeout().

mongo_host_port* mongo::primary

Primary connection info.

Definition at line 189 of file mongo.h.

Referenced by mongo_client(), mongo_destroy(), mongo_get_primary(), mongo_reconnect(), mongo_replica_set_client(), and mongo_replica_set_init().

mongo_replica_set* mongo::replica_set
SOCKET mongo::sock
mongo_write_concern* mongo::write_concern

The default write concern.

Definition at line 197 of file mongo.h.

Referenced by mongo_choose_write_concern(), and mongo_set_write_concern().


The documentation for this struct was generated from the following file: