nn::nex::DataStoreClient::SetHttpBufferSize Member Function

Syntax

void SetHttpBufferSize(
     qUnsignedInt32 httpBufferSize
);

Parameters

Name Description
in httpBufferSize The size of buffer used for HTTP communication.

Return Values

None.

Description

Sets the size of the buffer to allocate by the DataStore library for use with HTTP communication to send and receive data.

Data is sent and received by calls to the DataStoreClient::GetObject function, the DataStoreClient::PostObject function, and the DataStoreClient::UpdateObject function. Memory that is double the size set here is allocated for HTTP communications, because double-buffering is performed. The setting that is used is the setting in effect at the time when one of these functions is called. You can switch the size for each session by calling this function every time a function that results in HTTP communication is called. If this function is not called, the size becomes DataStoreConstants::DEFAULT_HTTP_BUFFER_SIZE.

Revision History

2012/01/27
Deleted the text that incorrectly stated that the setting configured by this function was only used with overloaded functions that used event listeners. In fact, this setting is used from all function calls that result in HTTP communications.
2011/08/30
Initial version.

CONFIDENTIAL