nn::http::Connection::SendPostDataBinary Member Function

Syntax

nn::Result SendPostDataBinary(
     const char * pLabel,
     const void * pValue,
     size_t valueSize,
     const nn::fnd::TimeSpan & timeout
);

Arguments

Name Description
in pLabel Label name of the data.
in pValue Data content.
in valueSize Data size of pValue.
in timeout Timeout interval.

Return Values

Returns the function's execution result. Returns a Result listed below.
Value Description
ResultSuccess Process was successful.
ResultTimeout Error indicating a timeout.
A value other than the above. Same as for the SendPostDataBinary function version that has no timeout argument.

Description

This version of SendPostDataBinary has a timeout.

Other than allowing the caller to specify a timeout, this version functions identically to SendPostDataBinary. For feature details, see the function reference for the version without a timeout. Returns ResultTimeout if no POST data has been fully sent 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