nn::http::Connection::Connect Member Function

Syntax

nn::Result Connect(
     void
);

Arguments

None.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
Result::IsSuccess Process was successful.
ResultConnectionCanceledErr Error indicating that the connection was canceled. To reconnect, first call the Connection object's Finalize function, and then call Initialize again.
ResultNotConnectedErr Error indicating that no target URL was assigned to the Connection object. No action is performed because the Connection object has not been initialized by a successful call of Initialize.
ResultNotInitializedErr Error indicating that the library is not initialized. None of this library's functions can be used until you first call nn::http::Initialize.
A value other than the above. Unexpected error (See http_Result.h for details).

Description

Starts a connection with the communication target. (This is the synchronous version of the function. In other words, if the maximum number of HTTP sessions are already in use, the function blocks until one of those sessions concludes.)

Revision History

2010/06/14
Initial version.

CONFIDENTIAL