nn::rdt::CTR::Sender::Send Member Function

Syntax

nn::Result Send(
     const void * pBuf,
     size_t bufSize
);

Arguments

Name Description
in pBuf Pointer to the start of the send data. This must not be a null pointer.
in bufSize If the size of the send data (in bytes) is set to 0, the function will do nothing and return a non-error value.

Return Values

Returns a value indicating whether data was successfully written to the send buffer. Specifically, the following values may be returned: ResultSuccess, ResultNotInitialized, ResultDoNothing, ResultSendBufferIsNotAvailable, and ResultUntimelyFunctionCall.

Description

Writes data to the send buffer.

If you can verify that the call succeeded, then the data has been copied to the send buffer and it will cause no problems to destroy the region pointed to by pBuf. If the send buffer has insufficient space and it is not possible to write the requested amount of data, this function call fails. In this case, no data at all is written to the send buffer. If Send fails, wait a short while and then try again. Data written to the send buffer is actually sent within the Process function.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL