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

Syntax

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

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

List of Overloaded Member Functions

SendPostDataBinary(const char *, const void *, size_t) Function used to set POST data (as binary data) in "lazy" (delayed) POST data configuration mode.
SendPostDataBinary(const char *, const void *, size_t, const nn::fnd::TimeSpan &) This version of SendPostDataBinary has a timeout.

Description of SendPostDataBinary(const char *, const void *, size_t)

In "lazy" POST data configuration mode, which can be entered by calling SetLazyPostDataSetting, this function can be used after either Connect or ConnectAsync is called. For more information about "lazy" POST data configuration mode, see the description of the SetLazyPostDataSetting function.

Note: Unlike the version of SendPostDataBinary that includes a timeout, this function does not time out. In other words, control will not return from this function until processing has ended. In environments where communications are slow you can expect a long time to pass before processing ends and control returns from this function.

Description of SendPostDataBinary(const char *, const void *, size_t, const nn::fnd::TimeSpan &)

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


CONFIDENTIAL