|
Data Structures | |
| struct | mongo_reply_packet_header |
| Mongo reply packet header. More... | |
Enumerations | |
| enum | { MONGO_REPLY_FLAG_NO_CURSOR = 0x1, MONGO_REPLY_FLAG_QUERY_FAIL = 0x2, MONGO_REPLY_FLAG_AWAITCAPABLE = 0x8 } |
Flags the server can set in replies. More... | |
Functions | |
| gboolean | mongo_wire_reply_packet_get_header (const mongo_packet *p, mongo_reply_packet_header *hdr) |
| Get the header of a reply packet. | |
| gboolean | mongo_wire_reply_packet_get_data (const mongo_packet *p, const guint8 **data) |
| Get the full data part of a reply packet. | |
| gboolean | mongo_wire_reply_packet_get_nth_document (const mongo_packet *p, gint32 n, bson **doc) |
| Get the Nth document from a reply packet. | |
| anonymous enum |
Flags the server can set in replies.
| gboolean mongo_wire_reply_packet_get_data | ( | const mongo_packet * | p, | |
| const guint8 ** | data | |||
| ) |
Get the full data part of a reply packet.
The result will include the full, unparsed data part of the reply.
| p | is the packet to retrieve the data from. | |
| data | is a pointer to a variable where the replys data can be stored. |
| gboolean mongo_wire_reply_packet_get_header | ( | const mongo_packet * | p, | |
| mongo_reply_packet_header * | hdr | |||
| ) |
Get the header of a reply packet.
| p | is the packet to retrieve the reply header from. | |
| hdr | is a pointer to a variable where the reply header will be stored. |
| gboolean mongo_wire_reply_packet_get_nth_document | ( | const mongo_packet * | p, | |
| gint32 | n, | |||
| bson ** | doc | |||
| ) |
Get the Nth document from a reply packet.
| p | is the packet to retrieve a document from. | |
| n | is the number of the document to retrieve. | |
| doc | is a pointer to a variable to hold the BSON document. |
1.6.1