Interface for receiving raw bytes from a transport.
More...
#include <adapter.h>
|
| virtual | ~ByteStream ()=default |
| |
| virtual std::size_t | ReceiveChunk (uint8_t *buffer, std::size_t maxLength)=0 |
| | Receive available bytes from the transport (non-blocking).
|
| |
Interface for receiving raw bytes from a transport.
Definition at line 27 of file adapter.h.
◆ ~ByteStream()
| virtual bcnp::ByteStream::~ByteStream |
( |
| ) |
|
|
virtualdefault |
◆ ReceiveChunk()
| virtual std::size_t bcnp::ByteStream::ReceiveChunk |
( |
uint8_t * | buffer, |
|
|
std::size_t | maxLength ) |
|
pure virtual |
Receive available bytes from the transport (non-blocking).
- Parameters
-
| buffer | Destination buffer |
| maxLength | Maximum bytes to read |
- Returns
- Number of bytes actually read (0 if none available)
Implemented in bcnp::TcpPosixAdapter, and bcnp::UdpPosixAdapter.
The documentation for this class was generated from the following file: