Functions | |
Scope restricted to file | |
int | sock_read_unprotected (const SOCKINFO *a_info, char *a_readbuf, const char *a_writebuf, const size_t a_bufsize, int *a_timeoutSecs) |
Read from a not SSL protected socket. | |
int | sock_write_unprotected (const SOCKINFO *a_info, char *a_readbuf, const char *a_writebuf, const size_t a_bufsize, int *a_timeoutSecs) |
Write to a not SSL protected socket. | |
int | sock_read_ssl (const SOCKINFO *a_info, char *a_readbuf, const char *a_writebuf, const size_t a_bufsize, int *a_timeoutSecs) |
Read from an SSL protected socket. | |
int | sock_write_ssl (const SOCKINFO *a_info, char *a_readbuf, const char *a_writebuf, const size_t a_bufsize, int *a_timeoutSecs) |
Write to an SSL protected socket. | |
Variables | |
SSL_CTX * | gSslCtx {nullptr} |
Pointer to an SSL Context. | |
int anonymous_namespace{sock.cpp}::sock_read_unprotected | ( | const SOCKINFO * | a_info, |
char * | a_readbuf, | ||
const char * | a_writebuf, | ||
const size_t | a_bufsize, | ||
int * | a_timeoutSecs | ||
) |
Read from a not SSL protected socket.
[in] | a_info | Socket Information Object. |
[out] | a_readbuf | Buffer to get data to. |
[in] | a_writebuf | Buffer to send data from. |
[in] | a_bufsize | Size of the used buffer (read or write). |
[in] | a_timeoutSecs | timeout value: < 0 blocks indefinitely waiting for a file descriptor to become ready. |
Definition at line 79 of file sock.cpp.
int anonymous_namespace{sock.cpp}::sock_write_unprotected | ( | const SOCKINFO * | a_info, |
char * | a_readbuf, | ||
const char * | a_writebuf, | ||
const size_t | a_bufsize, | ||
int * | a_timeoutSecs | ||
) |
Write to a not SSL protected socket.
[in] | a_info | Socket Information Object. |
[out] | a_readbuf | Buffer to get data to. |
[in] | a_writebuf | Buffer to send data from. |
[in] | a_bufsize | Size of the buffer. |
[in] | a_timeoutSecs | timeout value: < 0 blocks indefinitely waiting for a file descriptor to become ready. |
Definition at line 164 of file sock.cpp.
int anonymous_namespace{sock.cpp}::sock_read_ssl | ( | const SOCKINFO * | a_info, |
char * | a_readbuf, | ||
const char * | a_writebuf, | ||
const size_t | a_bufsize, | ||
int * | a_timeoutSecs | ||
) |
Read from an SSL protected socket.
This is only available with OpenSSL enabled on compiling the library.
[in] | a_info | Socket Information Object. |
[out] | a_readbuf | Buffer to get data to. |
[in] | a_writebuf | Buffer to send data from. |
[in] | a_bufsize | Size of the used buffer (read or write). |
[in] | a_timeoutSecs | timeout value: < 0 blocks indefinitely waiting for a file descriptor to become ready. |
Definition at line 264 of file sock.cpp.
int anonymous_namespace{sock.cpp}::sock_write_ssl | ( | const SOCKINFO * | a_info, |
char * | a_readbuf, | ||
const char * | a_writebuf, | ||
const size_t | a_bufsize, | ||
int * | a_timeoutSecs | ||
) |
Write to an SSL protected socket.
This is only available with OpenSSL enabled on compiling the library.
[in] | a_info | Socket Information Object. |
[out] | a_readbuf | Buffer to get data to. |
[in] | a_writebuf | Buffer to send data from. |
[in] | a_bufsize | Size of the buffer. |
[in] | a_timeoutSecs | timeout value: < 0 blocks indefinitely waiting for a file descriptor to become ready. |
Definition at line 351 of file sock.cpp.