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

Function EchoProcessHuluRequest

test/brpc_socket_unittest.cpp:296–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void EchoProcessHuluRequest(brpc::InputMessageBase* msg_base) {
297 brpc::DestroyingPtr<brpc::policy::MostCommonMessage> msg(
298 static_cast<brpc::policy::MostCommonMessage*>(msg_base));
299 butil::IOBuf buf;
300 buf.append(msg->meta);
301 buf.append(msg->payload);
302 ASSERT_EQ(0, msg->socket()->Write(&buf));
303}
304
305class MyConnect : public brpc::AppConnect {
306public:

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
WriteMethod · 0.45
socketMethod · 0.45

Tested by

no test coverage detected