#include <base/net/SSLSocket.h>
Inherits Resource.
◆ createSecure()
◆ read()
unsigned int SSLSocket::read |
( |
uint8 * |
buffer, |
|
|
unsigned int |
size, |
|
|
bool |
nonblocking = false |
|
) |
| |
Fills the buffer with bytes from the socket input stream. Blocks if asked to read more bytes than available. Raises EndOfFile if end of stream has been reached.
- Parameters
-
buffer | The buffer. |
size | The size of the buffer. |
nonblocking | Select nonblocking mode. |
- Returns
- The actual number of bytes read.
◆ write()
unsigned int SSLSocket::write |
( |
const uint8 * |
buffer, |
|
|
unsigned int |
size, |
|
|
bool |
nonblocking = false |
|
) |
| |
Writes bytes in buffer to stream.
- Parameters
-
buffer | The buffer containing the bytes to be written. |
size | The number of bytes to be written. |
nonblocking | Select nonblocking mode. |
- Returns
- The actual number of bytes written.