libmongo-client  0.1.6.1
Data Fields
mongo_packet_header Struct Reference

Mongo packet header. More...

#include <mongo-wire.h>

Data Fields

gint32 length
 Full length of the packet, including the header.
gint32 id
 Sequence ID, used when MongoDB responds to a command.
gint32 resp_to
 ID the response is an answer to.
gint32 opcode
 The opcode of the command.

Detailed Description

Mongo packet header.

Every mongo packet has a header like this. Normally, one does not need to touch it, though.


Field Documentation

Sequence ID, used when MongoDB responds to a command.

Full length of the packet, including the header.

The opcode of the command.

See also:
mongo_wire_opcode. <

ID the response is an answer to.

Only sent by the MongoDB server, never set on client-side.

 All Data Structures Variables