|
template<class... Args> |
| RecordingConnectionWrapper (std::ostream *recvStream, std::ostream *sendStream, Args &&... args) |
| Creates a RecordingConnectionWrapper that will write received bytes to recvStream, sent bytes to sendStream, and construct a connection object from args. More...
|
|
| ~RecordingConnectionWrapper () override |
| Deconstructs the RecordingConnectionWrapper as well as the underlying connection object made in the constructor. More...
|
|
| RecordingConnection (Connection *connection, std::ostream *recvStream=nullptr, std::ostream *sendStream=nullptr) |
| Creates a RecordingConnection that will write received bytes to recvStream, and sent bytes to sendStream. More...
|
|
| ~RecordingConnection () override=default |
|
bool | sendToDevice (const uint8_t *data, size_t length) override |
| Sends bytes to the device. More...
|
|
bool | recvFromDevice (uint8_t *buffer, size_t max_length, unsigned int wait_time_ms, size_t *length_out, EmbeddedTimestamp *timestamp_out) override |
| Receives bytes from the device. More...
|
|
bool | isConnected () const override |
|
bool | connect () override |
|
bool | disconnect () override |
|
const char * | interfaceName () const override |
|
uint32_t | parameter () const override |
|
uint64_t | recvFileBytesWritten () const |
|
uint64_t | sendFileBytesWritten () const |
|
| Connection () |
|
virtual | ~Connection () |
|
const char * | type () const |
|
template<typename ConnectionType>
class microstrain::connections::RecordingConnectionWrapper< ConnectionType >
Template wrapper for a recording connection.
- Template Parameters
-
ConnectionType | The type of connection used to actually communicate. |