|
roo_transport
API Documentation for roo_transport
|
Abstraction for sending packets over an underlying medium. More...
#include <packet_sender.h>
Public Member Functions | |
| virtual | ~PacketSender ()=default |
| virtual void | send (const roo::byte *buf, size_t len)=0 |
| Sends one data packet. | |
| virtual void | flush () |
| Flushes pending output. | |
Static Public Attributes | |
| static constexpr int | kMaxPacketSize = 250 |
| Maximum packet size that can be sent. | |
Abstraction for sending packets over an underlying medium.
Packets are up to kMaxPacketSize bytes. Implementations may use unreliable media where loss/corruption can occur.
Definition at line 13 of file packet_sender.h.
|
virtualdefault |
Flushes pending output.
Reimplemented in roo_transport::PacketSenderOverStream.
Definition at line 24 of file packet_sender.h.
Sends one data packet.
Implemented in roo_transport::PacketSenderOverStream.
Maximum packet size that can be sent.
Definition at line 16 of file packet_sender.h.