#include <fastmm/net/connection.hpp>
◆ Connection() [1/2]
template<ByteStream Stream, ConnectionHandler Handler>
For TLS streams a context is created from cfg.tls unless one is supplied.
Sized by the URL: a combined-stream path of many symbols is several kilobytes, and a fixed buffer too small for it left the target empty and the connection never upgrading.
◆ ~Connection()
template<ByteStream Stream, ConnectionHandler Handler>
◆ Connection() [2/2]
template<ByteStream Stream, ConnectionHandler Handler>
◆ operator=()
template<ByteStream Stream, ConnectionHandler Handler>
◆ connect()
template<ByteStream Stream, ConnectionHandler Handler>
Idle -> Resolving. Reconnects happen automatically until close().
◆ close()
template<ByteStream Stream, ConnectionHandler Handler>
Explicit shutdown: close frame on the live session, then Idle. No reconnect.
◆ send_text()
template<ByteStream Stream, ConnectionHandler Handler>
Sends go to the newest session (see rollover note above).
◆ cork()
template<ByteStream Stream, ConnectionHandler Handler>
◆ uncork()
template<ByteStream Stream, ConnectionHandler Handler>
◆ send_binary()
template<ByteStream Stream, ConnectionHandler Handler>
◆ send_ping()
template<ByteStream Stream, ConnectionHandler Handler>
◆ auth_done()
template<ByteStream Stream, ConnectionHandler Handler>
Manual acknowledgement hooks (see ConnectionConfig::manual_*).
◆ subscribe_done()
template<ByteStream Stream, ConnectionHandler Handler>
◆ state()
template<ByteStream Stream, ConnectionHandler Handler>
◆ is_live()
template<ByteStream Stream, ConnectionHandler Handler>
◆ last_rx_ns()
template<ByteStream Stream, ConnectionHandler Handler>
◆ url()
template<ByteStream Stream, ConnectionHandler Handler>
◆ config()
template<ByteStream Stream, ConnectionHandler Handler>
◆ stats()
template<ByteStream Stream, ConnectionHandler Handler>
Accumulated counters plus the live sessions' running totals.