nn::ssl::Connection::Write Member Functionnn::Result Write( const u8 * pDataBuf, size_t dataBufSize, size_t * pWrittenDataSizeCourier = NULL );
| Name | Description | |
|---|---|---|
| out | pDataBuf | Buffer storing the data to write. |
| in | dataBufSize | Size of pDataBuf. |
| out | pWrittenDataSizeCourier | Buffer storing the size of the written data. (May be omitted if the size of the written data is not needed.) |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| ResultProtocolFailedErr | Error due to SSL protocol failure. To reconnect, first call the Connection class's Finalize function, and then call Initialize again. |
| ResultWantWrite | Indicates, when an asynchronous socket was being used, that the send function (nn::socket::Write) returned without waiting for the operation to complete. Please try again. |
| ResultSystemCallErr | Indicates that the library function being used internally (mostly the socket functions) returned an unexpected error. (There was an abnormal response from the server, etc.) To reconnect, first call the Connection class's Finalize function, and then call Initialize again. |
| ResultSocketZeroReturn | Indicates that the send function (nn::socket::Write, etc.) returned 0. The SSL connection was closed on the server side. To reconnect, first call the Connection class's Finalize function, and then call Initialize again. |
| ResultIpcSessionErr | Error indicating an uninitialized connection. The function has not done anything as it has been called on a Connection instance for which you have not yet successfully called Initialize. |
| ResultNotInitializedErr | Error indicating that the library is not initialized. None of the functions in this library can be run without first running nn::ssl::Initialize. |
| A value other than the above. | Unexpected error (see ssl_Result.h for error details). |
Writes data over an SSL connection.
CONFIDENTIAL