the SSL connection
buffer containing bytes to be written
the number of bytes to be written
the number of bytes written to the SSL connection, or 0 if the connection was closed, or a negative value if an error occurred or action must be taken by the calling process.
Read bytes from an SSL connection