The SimpleTransport handles reading and writing over a Unix FD.
More...
#include <simpletransport.h>
The SimpleTransport handles reading and writing over a Unix FD.
◆ SimpleTransport()
SimpleTransport::SimpleTransport |
( |
int |
fd, |
|
|
bool |
initialize |
|
) |
| |
|
private |
◆ ~SimpleTransport()
SimpleTransport::~SimpleTransport |
( |
| ) |
|
◆ create()
std::shared_ptr< SimpleTransport > SimpleTransport::create |
( |
int |
fd, |
|
|
bool |
initialize |
|
) |
| |
|
static |
Create a SimpleTransport.
If the transport is unable to be created, returns an invalid shared_ptr.
- Parameters
-
fd | The already-open file descriptor |
initialize | True if this transport should initialize the connection by sending a single NULL byte |
- Returns
References fd(), and SimpleTransport().
◆ DBUS_CXX_PROPAGATE_CONST()
DBus::priv::SimpleTransport::DBUS_CXX_PROPAGATE_CONST |
( |
std::unique_ptr< priv_data > |
| ) |
|
|
private |
◆ fd()
int SimpleTransport::fd |
( |
| ) |
const |
|
virtual |
◆ is_valid()
bool SimpleTransport::is_valid |
( |
| ) |
const |
|
virtual |
◆ purgeData()
void SimpleTransport::purgeData |
( |
| ) |
|
|
private |
◆ readMessage()
std::shared_ptr< DBus::Message > SimpleTransport::readMessage |
( |
| ) |
|
|
virtual |
Implements DBus::priv::Transport.
References DBus::Big, Body, DBus::Message::create_from_data(), DBus::Demarshaling::demarshal_uint32_t(), DBus::Demarshaling::demarshal_uint8_t(), FirstHeaderPart, DBus::hexdump(), DBus::Little, LOGGER_NAME, DBus::Validator::maximum_message_size(), purgeData(), SecondHeaderPart, DBus::Demarshaling::set_data_offset(), DBus::Demarshaling::set_endianess(), and SIMPLELOGGER_TRACE.
◆ writeMessage()
ssize_t SimpleTransport::writeMessage |
( |
std::shared_ptr< const Message > |
message, |
|
|
uint32_t |
serial |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: