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

Syntax

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

Arguments

Name Description
out pStatusCodeCourier Buffer that stores status codes.
in timeout Timeout interval.

Return Values

Returns the function's execution result. The Result values are the same as those returned by the version of GetHeaderField that has a timeout argument.

Description

This version of GetStatusCode has a timeout.

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.)

Revision History

2010/06/14
Initial version.

CONFIDENTIAL