qb
2.0.0.0
C++17 Actor Framework
|
Proxy class providing a stream-like interface for sending UDP datagrams. More...
#include <udp.h>
Public Member Functions | |
ProxyOut (udp &prx) | |
Constructor. | |
template<typename T> | |
auto & | operator<< (T &&data) |
Stream output operator to append data to the current datagram being built. | |
std::size_t | size () |
Get the total size of data currently pending in the transport's output buffer for writing. |
Proxy class providing a stream-like interface for sending UDP datagrams.
This class allows data to be written using operator<< and ensures that the data is correctly associated with the current destination udp::identity and buffered as a distinct datagram in the UDP transport's output buffer.
|
inline |
Constructor.
prx | Reference to the udp transport this proxy will operate on. |
|
inline |
Stream output operator to append data to the current datagram being built.
T | Type of data to output. |
data | Data to send. |
Appends data to the current message in the UDP transport's output buffer. Manages the size tracking for the current datagram being constructed.
|
inline |
Get the total size of data currently pending in the transport's output buffer for writing.