9namespace Steam::Networking {
33 return state() == ConnectionState::CONNECTED;
51 virtual void async_send(
const std::vector<uint8_t>& data) = 0;
60 std::function<
void(std::vector<uint8_t>)> handler
Transport interface used by the CM networking client.
Definition connection.hpp:23
virtual void set_on_frame(std::function< void(std::vector< uint8_t >)> handler)=0
Register a frame receive handler.
bool is_connected() const
Check whether the transport is connected.
Definition connection.hpp:32
virtual ConnectionState state() const =0
Retrieve the current connection state.
virtual void network_connect()=0
Initiate the network connection.
virtual void network_close()=0
Close the active connection.
virtual void async_send(const std::vector< uint8_t > &data)=0
Send a raw message frame.
ConnectionState
Connection lifecycle state.
Definition connection.hpp:12