|
libmongo-client 0.1.4
|
MongoDB client API implementation. More...
#include "mongo-client.h"#include "bson.h"#include "mongo-wire.h"#include "libmongo-private.h"#include <glib.h>#include <string.h>#include <arpa/inet.h>#include <sys/types.h>#include <sys/socket.h>#include <netdb.h>#include <sys/uio.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <fcntl.h>#include <unistd.h>#include <stdlib.h>#include <errno.h>
Go to the source code of this file.
Defines | |
| #define | MSG_NOSIGNAL 0 |
Functions | |
| mongo_connection * | mongo_connect (const char *host, int port) |
| Connect to a MongoDB server. | |
| void | mongo_disconnect (mongo_connection *conn) |
| Disconnect from a MongoDB server. | |
| gboolean | mongo_packet_send (mongo_connection *conn, const mongo_packet *p) |
| Sends an assembled command packet to MongoDB. | |
| mongo_packet * | mongo_packet_recv (mongo_connection *conn) |
| Receive a packet from MongoDB. | |
| gint32 | mongo_connection_get_requestid (const mongo_connection *conn) |
| Get the last requestID from a connection object. | |
| gboolean | mongo_connection_set_timeout (mongo_connection *conn, gint timeout) |
| Set a timeout for read/write operations on a connection. | |
MongoDB client API implementation.
Definition in file mongo-client.c.
1.7.4