|
libmongo-client
0.1.8
|
|
Data Structures | |
| struct | mongo_packet_header |
| Mongo packet header. More... | |
Functions | |
| mongo_packet * | mongo_wire_packet_new (void) |
| Create an empty packet. More... | |
| gboolean | mongo_wire_packet_get_header (const mongo_packet *p, mongo_packet_header *header) |
| Get the header data of a packet. More... | |
| gboolean | mongo_wire_packet_set_header (mongo_packet *p, const mongo_packet_header *header) |
| Set the header data of a packet. More... | |
| gint32 | mongo_wire_packet_get_data (const mongo_packet *p, const guint8 **data) |
| Get the data part of a packet. More... | |
| gboolean | mongo_wire_packet_set_data (mongo_packet *p, const guint8 *data, gint32 size) |
| Set the data part of a packet. More... | |
| void | mongo_wire_packet_free (mongo_packet *p) |
| Free up a mongo packet. More... | |
| void mongo_wire_packet_free | ( | mongo_packet * | p | ) |
Free up a mongo packet.
| p | is the packet to free. |
| gint32 mongo_wire_packet_get_data | ( | const mongo_packet * | p, |
| const guint8 ** | data | ||
| ) |
Get the data part of a packet.
Retrieve the raw binary blob of the mongo packet's data.
| p | is the packet which header we seek. |
| data | is a pointer to a variable which will hold the data. |
| gboolean mongo_wire_packet_get_header | ( | const mongo_packet * | p, |
| mongo_packet_header * | header | ||
| ) |
Get the header data of a packet.
Retrieve the mongo packet's header data.
| p | is the packet which header we seek. |
| header | is a pointer to a variable which will hold the data. |
| mongo_packet* mongo_wire_packet_new | ( | void | ) |
Create an empty packet.
Creates an empty packet to be filled in later with mongo_wire_packet_set_header() and mongo_packet_set_data().
| gboolean mongo_wire_packet_set_data | ( | mongo_packet * | p, |
| const guint8 * | data, | ||
| gint32 | size | ||
| ) |
Set the data part of a packet.
Overrides the data part of a packet, adjusting the packet length in the header too.
| p | is the packet whose data is to be set. |
| data | is the data to set. |
| size | is the size of the data. |
| gboolean mongo_wire_packet_set_header | ( | mongo_packet * | p, |
| const mongo_packet_header * | header | ||
| ) |
Set the header data of a packet.
Override the mongo packet's header data.
| p | is the packet whose header we want to override. |
| header | is the header structure to use. |
1.8.9.1