Thrill
0.1
|
Definition at line 179 of file dispatcher.hpp.
#include <dispatcher.hpp>
Public Member Functions | |
AsyncWriteBuffer (Connection &conn, Buffer &&buffer, const AsyncWriteCallback &callback) | |
Construct buffered writer with callback. More... | |
AsyncWriteBuffer (const AsyncWriteBuffer &)=delete | |
non-copyable: delete copy-constructor More... | |
AsyncWriteBuffer (AsyncWriteBuffer &&)=default | |
move-constructor: default More... | |
~AsyncWriteBuffer () | |
Connection * | connection () const |
Returns conn_. More... | |
const uint8_t * | data () const |
underlying buffer pointer More... | |
void | DoCallback () |
bool | IsDone () const |
bool | operator() () |
Should be called when the socket is writable. More... | |
AsyncWriteBuffer & | operator= (const AsyncWriteBuffer &)=delete |
non-copyable: delete assignment operator More... | |
AsyncWriteBuffer & | operator= (AsyncWriteBuffer &&)=default |
move-assignment operator: default More... | |
size_t | size () const |
underlying buffer size More... | |
Private Attributes | |
Buffer | buffer_ |
Send buffer (owned by this writer) More... | |
AsyncWriteCallback | callback_ |
functional object to call once data is complete More... | |
Connection * | conn_ |
Connection reference. More... | |
size_t | write_size_ = 0 |
total size currently written More... | |
|
inline |
Construct buffered writer with callback.
Definition at line 183 of file dispatcher.hpp.
References AsyncReadBuffer::buffer_, AsyncReadBuffer::conn_, LOGC, AsyncReadBuffer::operator=(), Buffer::size(), and Connection::tx_active_.
|
delete |
non-copyable: delete copy-constructor
|
default |
move-constructor: default
|
inline |
Definition at line 203 of file dispatcher.hpp.
References AsyncReadBuffer::buffer_, LOGC, and Buffer::size().
|
inline |
Returns conn_.
Definition at line 255 of file dispatcher.hpp.
References AsyncReadBuffer::conn_.
Referenced by Dispatcher::PerformAsync().
|
inline |
underlying buffer pointer
Definition at line 258 of file dispatcher.hpp.
References AsyncReadBuffer::buffer_, and Buffer::data().
Referenced by Dispatcher::PerformAsync().
|
inline |
Definition at line 247 of file dispatcher.hpp.
References AsyncReadBuffer::callback_, and AsyncReadBuffer::conn_.
|
inline |
Definition at line 245 of file dispatcher.hpp.
References AsyncReadBuffer::buffer_, and Buffer::size().
|
inline |
Should be called when the socket is writable.
Definition at line 210 of file dispatcher.hpp.
References AsyncReadBuffer::buffer_, AsyncReadBuffer::conn_, Buffer::data(), AsyncReadBuffer::DoCallback(), LOG1, LOGC, Connection::SendOne(), Buffer::size(), and Connection::tx_active_.
|
delete |
non-copyable: delete assignment operator
|
default |
move-assignment operator: default
|
inline |
underlying buffer size
Definition at line 261 of file dispatcher.hpp.
References AsyncReadBuffer::buffer_, and Buffer::size().
Referenced by Dispatcher::PerformAsync().
|
private |
Send buffer (owned by this writer)
Definition at line 268 of file dispatcher.hpp.
|
private |
functional object to call once data is complete
Definition at line 274 of file dispatcher.hpp.
|
private |
Connection reference.
Definition at line 265 of file dispatcher.hpp.
|
private |
total size currently written
Definition at line 271 of file dispatcher.hpp.