Helper for reading incoming TCP messages. More...
Public Member Functions | |
boost::asio::mutable_buffer | buffer () |
IncomingMessage (Buffer &&buffer) | |
auto | pop () |
auto | size () const |
boost::asio::mutable_buffer | size_as_buffer () |
Private Attributes | |
Buffer | _message |
message_size_type | _size = 0u |
Helper for reading incoming TCP messages.
Allocates the whole message in a single buffer.
Definition at line 34 of file streaming/detail/tcp/Client.cpp.
|
inlineexplicit |
Definition at line 37 of file streaming/detail/tcp/Client.cpp.
|
inline |
Definition at line 43 of file streaming/detail/tcp/Client.cpp.
References _message, _size, carla::Buffer::buffer(), DEBUG_ASSERT, and carla::Buffer::reset().
|
inline |
Definition at line 53 of file streaming/detail/tcp/Client.cpp.
References _message.
|
inline |
Definition at line 49 of file streaming/detail/tcp/Client.cpp.
References _size.
|
inline |
Definition at line 39 of file streaming/detail/tcp/Client.cpp.
References _size.
|
private |
Definition at line 61 of file streaming/detail/tcp/Client.cpp.
|
private |
Definition at line 59 of file streaming/detail/tcp/Client.cpp.
Referenced by buffer(), size(), and size_as_buffer().