nn::http::Initialize Function

Syntax

Result Initialize(
     uptr bufferAddress = 0,
     size_t bufferSize = 0
);

Arguments

Name Description
in bufferAddress Pointer to the start of the buffer for POST data. The memory for the buffer must be 4096-byte aligned.
in bufferSize Size of the buffer for POST data.

Return Values

Returns the processing result.

Description

Initializes the HTTP library. Processes linking the HTTP library must call this once before using the library.

You must set the argument to the buffer for POST data in order to use the AddPostData-related functions of nn::http::Connection (the functions that register POST data before Connect).
If you are not using the AddPostData-related functions you do not need to set anything to the argument. (In other words, even if POST data are being used, this argument does not need to be set if the POST data are being used only with SendPostData-related functions.

The POST data buffer is used to temporarily store the registered POST data.
For this reason, the buffer size must be larger than the maximum total amount of POST data that will be registered at any one time.
(The POST data registered to nn::http::Connection are stored temporarily in the POST data buffer, POST-sent when nn::http::Connection::Connect executes, and deleted when nn::http::Connection::Finalize executes. Accordingly, the size of the POST data buffer must be larger than the maximum total amount of POST data that will be registered to nn::http::Connection at any one time together before Finalize.)

Revision History

2010/06/14
Initial version.

CONFIDENTIAL