|
dodo
0.0.1
A C++ library to create containerized Linux services
|
Class to track a connection. More...
#include <tcplistener.hpp>

Public Member Functions | |
| TCPConnectionData () | |
| Construct. More... | |
| virtual | ~TCPConnectionData () |
| Destruct. More... | |
| void | clearBuffer () |
| Clears the read_buffer. More... | |
| const common::Bytes & | getReadBuffer () const |
| Get a reference to the read buffer. More... | |
| common::SystemError | readBuffer (BaseSocket *socket, ssize_t &received) |
| Reads and appends data to read_buffer. More... | |
Protected Attributes | |
| common::Bytes | read_buffer |
| Buffer for (incomplete) request data. More... | |
Class to track a connection.
Definition at line 55 of file tcplistener.hpp.
|
inline |
Construct.
Definition at line 61 of file tcplistener.hpp.
|
inlinevirtual |
Destruct.
Definition at line 66 of file tcplistener.hpp.
| void dodo::network::TCPConnectionData::clearBuffer | ( | ) |
Clears the read_buffer.
Definition at line 62 of file tcplistener.cpp.
|
inline |
Get a reference to the read buffer.
Definition at line 85 of file tcplistener.hpp.
References read_buffer.
| common::SystemError dodo::network::TCPConnectionData::readBuffer | ( | BaseSocket * | socket, |
| ssize_t & | received | ||
| ) |
Reads and appends data to read_buffer.
| socket | The socket to read from. |
| received | The number of bytes received. |
Definition at line 38 of file tcplistener.cpp.
References dodo::common::SystemError::asString(), dodo::common::SystemError::ecEAGAIN, dodo::common::SystemError::ecOK, dodo::common::Bytes::getArray(), dodo::network::BaseSocket::getFD(), dodo::common::Bytes::getSize(), dodo::common::Bytes::hexDump(), log_Debug, log_Error, log_Trace, dodo::network::BaseSocket::receive(), and dodo::common::Bytes::reserve().
Referenced by dodo::network::TCPServer::run().


|
protected |
Buffer for (incomplete) request data.
Definition at line 89 of file tcplistener.hpp.
Referenced by getReadBuffer().