libmongo-client  0.1.9
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. More...
 
gint32 id
 Sequence ID, used when MongoDB responds to a command. More...
 
gint32 resp_to
 ID the response is an answer to. More...
 
gint32 opcode
 The opcode of the command. More...
 

Detailed Description

Mongo packet header.

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

Field Documentation

gint32 mongo_packet_header::id

Sequence ID, used when MongoDB responds to a command.

gint32 mongo_packet_header::length

Full length of the packet, including the header.

gint32 mongo_packet_header::opcode

The opcode of the command.

See also
mongo_wire_opcode. <
gint32 mongo_packet_header::resp_to

ID the response is an answer to.

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