MessageReaderSettings

Settings that affect the way messages are read from a connected socket

Passed with a call to CreateTcpMsgConnection().


struct MessageReaderSettings
{
    ssize_t normalCommitBufferSize;
    ssize_t maxMsgSize;
    ssize_t maxRecvSize;
};


ssize_t normalCommitBufferSize

The initial size of the read buffer

Default value : 16384 (16KB)


ssize_t maxMsgSize

If the body of a message exceeds this value then a fatal SC_ReadInvalidMessageSize error is raised on the connection.

Default value : 67108864 (64 MB)


ssize_t maxRecvSize

An upper bound on the size of the buffer returned by MsgReader::BeginReceive()

Default value : 262144 (256kB)