Page
Library
Module
Module type
Parameter
Class
Class type
Source
Ssl.Runtime_lockSourceRuntime_lock is an equivalent, signature compatible, equivalent to the Ssl module, with one difference: the OCaml runtime lock isn't released before calling the underlying SSL primitives. Multiple systhreads cannot, therefore, run concurrently.
It works well with non blocking sockets where the usual semantics apply, i.e. handling of `EWOULDBLOCK`, `EGAIN`, etc. Additionally, the functions in this module don't perform a copy of application data buffers.
Open an SSL connection.
Open an SSL connection with the specified context.
Send close notify to the peer. This is SSL_shutdown(3). * returns true if shutdown is finished, false in case close_notify * needs to be called a second time.
Close a SSL connection. * Send close notify to the peer and wait for close notify from peer.
read sock buf off len receives data from a connected SSL socket.
read_into_bigarray sock ba off len receives data from a connected SSL socket. This function releases the runtime while the read takes place.
write sock buf off len sends data over a connected SSL socket.
write_substring sock str off len sends data over a connected SSL socket.
write_bigarray sock ba off len sends data over a connected SSL socket. This function releases the runtime while the read takes place.