BCNP 3.2.1
Batched Command Network Protocol
Loading...
Searching...
No Matches
bcnp::ByteWriter Class Referenceabstract

Interface for sending raw bytes over a transport. More...

#include <adapter.h>

Inheritance diagram for bcnp::ByteWriter:
[legend]

Public Member Functions

virtual ~ByteWriter ()=default
 
virtual bool SendBytes (const uint8_t *data, std::size_t length)=0
 Send bytes over the transport.
 

Detailed Description

Interface for sending raw bytes over a transport.

Definition at line 11 of file adapter.h.

Constructor & Destructor Documentation

◆ ~ByteWriter()

virtual bcnp::ByteWriter::~ByteWriter ( )
virtualdefault

Member Function Documentation

◆ SendBytes()

virtual bool bcnp::ByteWriter::SendBytes ( const uint8_t * data,
std::size_t length )
pure virtual

Send bytes over the transport.

Parameters
dataPointer to data buffer
lengthNumber of bytes to send
Returns
true if sent successfully (or queued), false on error

Implemented in bcnp::TcpPosixAdapter, and bcnp::UdpPosixAdapter.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: