Status of the socket
Status of the socket
Remaining data that was acquired during handshaking but were not consumed by any
read
operation
indication that handshake is in progress.
If handshakeInProgress
is true, this contains all operations to be notified
when handshake is done.
Acquires up to max bytes from the chunk in buffer.
Acquires up to max bytes from the chunk in buffer. May return empty chunk
Invoked when handshake shall be in process and shall finish when handshake is complete
concats a, b if they are nonempty *
Perform SSL handshake.
Perform SSL handshake. This completes when handshake is complete and will trigger all handshake awaiting tasks to be run.
Socket to send/receive raw data
SSL engine
Status reference to acquire handshake lock and register for callback
Timeout to perform the handshake
Perform read operation of up to maxSize
bytes.
Perform read operation of up to maxSize
bytes.
May return None indicating EOF. If handshake needs to be done during the read process, this will perform that handshake before returning.
Socket to use to receive data
SSL Engine
Max size of data to return (may be less or empty)
Timeout to await the read operation
A reference to state
Write semaphore guarding any writed
Read semaphore guarding any reads
Write supplied data to the destination socket.
Write supplied data to the destination socket.
When the handshake is in process, this will complete _AFTER_ handshake is complete.
Socket to write encrypted data to
SSLEngine to use
bytes to write
A timeout to write the data