@@ -634,17 +634,17 @@ R"x*x*x(<html>
634634
635635 // session 的连接日志输出函数, 用于输出连接 id 相关的日志信息, 简化重复
636636 // 的 connection id 这些信息的代码.
637- auto log_conn_error () const noexcept
637+ inline auto log_conn_error () const noexcept
638638 {
639639 return std::move (XLOG_FERR (" connection id: {}" , m_connection_id));
640640 }
641641
642- auto log_conn_warning () const noexcept
642+ inline auto log_conn_warning () const noexcept
643643 {
644644 return std::move (XLOG_FWARN (" connection id: {}" , m_connection_id));
645645 }
646646
647- auto log_conn_debug () const noexcept
647+ inline auto log_conn_debug () const noexcept
648648 {
649649 return std::move (XLOG_FDBG (" connection id: {}" , m_connection_id));
650650 }
@@ -728,7 +728,7 @@ R"x*x*x(<html>
728728 }
729729
730730 // 更新 session 发起连接时使用的本地绑定地址.
731- void update_bind_interface (const std::string& addr) noexcept
731+ inline void update_bind_interface (const std::string& addr) noexcept
732732 {
733733 if (addr.empty ())
734734 return ;
@@ -786,7 +786,7 @@ R"x*x*x(<html>
786786 }
787787
788788 public:
789- void start () noexcept override
789+ inline void start () noexcept override
790790 {
791791 auto server = m_proxy_server.lock ();
792792 if (!server)
@@ -856,7 +856,7 @@ R"x*x*x(<html>
856856 }, net::detached);
857857 }
858858
859- void close () noexcept override
859+ inline void close () noexcept override
860860 {
861861 if (m_abort)
862862 return ;
@@ -870,7 +870,7 @@ R"x*x*x(<html>
870870 m_remote_socket.close (ignore_ec);
871871 }
872872
873- void setup_tproxy (
873+ inline void setup_tproxy (
874874 const net::ip::tcp::endpoint& tproxy_remote) noexcept override
875875 {
876876 log_conn_debug ()
@@ -879,7 +879,7 @@ R"x*x*x(<html>
879879 m_tproxy_remote = tproxy_remote;
880880 }
881881
882- size_t connection_id () const noexcept override
882+ inline size_t connection_id () const noexcept override
883883 {
884884 return m_connection_id;
885885 }
0 commit comments