#include <message.h>
Public Member Functions | |
Data (u_char *d, size_t l) | |
Data (const Data &d) | |
Data (const std::string &s) | |
virtual | ~Data () |
const u_char * | data (void) const |
Return a pointer to the data contained in this message. | |
size_t | len (void) const |
Return the length of the data we're holding. |
RTTI can help us determine this rather than checking Message::typ, and it makes the code a little more clear, I think.
Definition at line 132 of file message.h.
Data::Data | ( | const Data & | d | ) |
Definition at line 141 of file message.cc.
References Message::alloc_data(), data(), len(), and Message::privdata.
const u_char * Data::data | ( | void | ) | const |
Return a pointer to the data contained in this message.
Return the actual data pointer...
Definition at line 97 of file message.cc.
References Message::privdata.
Referenced by Data(), UserTTYConn::handle_oob_sequence(), operator<<(), TTYConnector::write(), History::write(), and FDConnector::write().
size_t Data::len | ( | void | ) | const |
Return the length of the data we're holding.
Return the length of the data contained in this message.
Definition at line 104 of file message.cc.
References Message::length.
Referenced by Data(), UserTTYConn::handle_oob_sequence(), operator<<(), BiDirConn::reader(), TTYConnector::write(), History::write(), and FDConnector::write().