Interface for sending raw bytes over a transport.
More...
#include <adapter.h>
|
| virtual | ~ByteWriter ()=default |
| |
| virtual bool | SendBytes (const uint8_t *data, std::size_t length)=0 |
| | Send bytes over the transport.
|
| |
Interface for sending raw bytes over a transport.
Definition at line 11 of file adapter.h.
◆ ~ByteWriter()
| virtual bcnp::ByteWriter::~ByteWriter |
( |
| ) |
|
|
virtualdefault |
◆ SendBytes()
| virtual bool bcnp::ByteWriter::SendBytes |
( |
const uint8_t * | data, |
|
|
std::size_t | length ) |
|
pure virtual |
Send bytes over the transport.
- Parameters
-
| data | Pointer to data buffer |
| length | Number of bytes to send |
- Returns
- true if sent successfully (or queued), false on error
Implemented in bcnp::TcpPosixAdapter, and bcnp::UdpPosixAdapter.
The documentation for this class was generated from the following file: