MCPcopy Create free account
hub / github.com/apache/brpc / Echo

Method Echo

test/brpc_alpn_protocol_unittest.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41class EchoServerImpl : public test::EchoService {
42public:
43 virtual void Echo(google::protobuf::RpcController* controller,
44 const ::test::EchoRequest* request,
45 test::EchoResponse* response,
46 google::protobuf::Closure* done) {
47 brpc::ClosureGuard done_guard(done);
48 response->set_message(request->message());
49
50 brpc::Controller* cntl = static_cast<brpc::Controller*>(controller);
51 LOG(NOTICE) << "protocol:" << cntl->request_protocol();
52 }
53};
54
55class ALPNTest : public testing::Test {

Callers

nothing calls this directly

Calls 2

request_protocolMethod · 0.80
messageMethod · 0.45

Tested by

no test coverage detected