make_header: Make a message header...

Description Usage Arguments Details Value

Description

Make a message header

Usage

1
make_header(opCode, messageLength)

Arguments

opCode

the operation code for this message

messageLength

the length of message (sans header), in bytes

Details

All messages to and from Mongo begin with a header of the form:

int32 - total length of the message int32 - a request ID, which is randomly generated int32 - the request ID of message to which this is responding (not applicable to any messages sent to mongo) int32 - the operation code, which encodes the message type

Value

a raw vector


strongh/mongor documentation built on May 30, 2019, 8:32 p.m.