#pragma once #include "net_address.hpp" #include "tcp_client.hpp" #include namespace tinyrpc { class TinypbChannel : public google::protobuf::RpcChannel { public: TinypbChannel(const NetAddress& peerAddr); ~TinypbChannel() = default; void CallMethod(const google::protobuf::MethodDescriptor* method, google::protobuf::RpcController* controller, const google::protobuf::Message* request, google::protobuf::Message* response, google::protobuf::Closure* done) override; private: TcpClient m_client; }; }