nn::http::Connection::GetStatusCode Member Function

Syntax

nn::Result GetStatusCode(
     s32 * pStatusCodeCourier
) const;

nn::Result GetStatusCode(
     s32 * pStatusCodeCourier,
     const nn::fnd::TimeSpan & timeout
) const;

List of Overloaded Member Functions

GetStatusCode(s32 *) Gets the status code for the HTTP response that was received.
GetStatusCode(s32 *, const nn::fnd::TimeSpan &) This version of GetStatusCode has a timeout.

Description of GetStatusCode(s32 *)

This function will block until the header is completely received. See the description of GetHeaderField for more details about this specification.
Note: Unlike GetStatusCode, this function does not have an attached timeout. In other words, the process will not return from this function until processing has ended.
For this reason, in environments where communications are slow you can expect a long time to pass before the process ends and returns from this function.

Description of GetStatusCode(s32 *, const nn::fnd::TimeSpan &)

Other than enabling the user to specify a timeout, this version functions identically to GetStatusCode. For feature details, see the function reference for the version without a timeout. Returns ResultTimeout if no HTTP response header has been fully received within the timeout period. If ResultTimeout is returned, the connection is automatically canceled. (In other words, the function internally implements Cancel.)


CONFIDENTIAL