MySQL 8.0.40
Source Code Documentation
|
Enables bufforing of I/O for a socket. More...
#include <http_common.h>
Classes | |
struct | impl |
Public Types | |
enum class | SslState { Open = 0 , Connecting = 1 , Accepting = 2 } |
using | SocketHandle = EventBaseSocket |
Public Member Functions | |
EventBuffer (EventBase *, const SocketHandle socket, TlsContext *tls_context, const SslState state, const EventBufferOptionsFlags::Bitset &options) | |
Initialize the buffer, with OpenSSL processing. More... | |
EventBuffer (EventBuffer &&) | |
~EventBuffer () | |
Private Attributes | |
std::unique_ptr< impl > | pImpl_ |
Friends | |
class | EventHttp |
Enables bufforing of I/O for a socket.
Wrapper for bufferevent
structure from libevent
. Additionally this class allows custom processing, like SSL.
Notice: For now the functionality is limited to minimum.
|
strong |
EventBuffer::EventBuffer | ( | EventBase * | base, |
const SocketHandle | socket, | ||
TlsContext * | tls_context, | ||
const SslState | state, | ||
const EventBufferOptionsFlags::Bitset & | options | ||
) |
Initialize the buffer, with OpenSSL processing.
This c-tor, creates new SSL-connection from TlsContext
, which means that state
can only be set to SslState::Connecting
or SslState::Accepting
.
EventBuffer::EventBuffer | ( | EventBuffer && | other | ) |
EventBuffer::~EventBuffer | ( | ) |
|
friend |
|
private |