Performs a typical application-level write operation.
- iOS 5.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
An SSL session context reference.
A pointer to the buffer of data to write.
The amount, in bytes, of data to write.
On return, the length, in bytes, of the data actually written.
A result code. See Secure Transport Result Codes.
SSLWrite function might call the
SSLWrite function that you provide (see
SSLSet). Because you may configure the underlying connection to operate in a no-blocking manner, a write operation might return
err, indicating that less data than requested was actually transferred. In this case, you should repeat the call to
SSLWrite until some other result is returned.