#pragma once #include #include #include namespace llarp::link { struct Connection { std::shared_ptr conn; std::shared_ptr control_stream; RemoteRC remote_rc; // one side of a connection will be responsible for some things, e.g. heartbeat bool inbound{false}; bool remote_is_relay{true}; Connection( std::shared_ptr& c, std::shared_ptr& s, const RemoteRC& rc); }; } // namespace llarp::link /* TODO: - make control_stream a weak pointer? */