Function

SSLSetIOFuncs

Specifies callback functions that perform the network I/O operations.

Declaration

OSStatus SSLSetIOFuncs(SSLContextRef context, SSLReadFunc readFunc, SSLWriteFunc writeFunc);

Parameters

context

An SSL session context reference.

read

A pointer to your read callback function. See SSLReadFunc for information on defining this function.

write

A pointer to your write callback function. See SSLWriteFunc for information on defining this function.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

Secure Transport calls your read and write callback functions to perform network I/O. You must define these functions before calling SSLSetIOFuncs.

You must call SSLSetIOFuncs prior to calling the SSLHandshake function. SSLSetIOFuncs cannot be called while a session is active.

See Also

Context Callbacks

SSLReadFunc

A pointer to a customized read function that secure transport calls to read data from the connection.

SSLWriteFunc

A pointer to a customized write function that secure transport calls to write data to the connection.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software