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

Method ProcessMessage

test/brpc_hulu_pbrpc_protocol_unittest.cpp:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 void ProcessMessage(void (*process)(brpc::InputMessageBase*),
127 brpc::InputMessageBase* msg, bool set_eof) {
128 if (msg->_socket == NULL) {
129 _socket.get()->ReAddress(&msg->_socket);
130 }
131 msg->_arg = &_server;
132 _socket->PostponeEOF();
133 if (set_eof) {
134 _socket->SetEOF();
135 }
136 (*process)(msg);
137 }
138
139 brpc::policy::MostCommonMessage* MakeRequestMessage(
140 const brpc::policy::HuluRpcRequestMeta& meta) {

Callers

nothing calls this directly

Calls 4

ReAddressMethod · 0.80
PostponeEOFMethod · 0.80
SetEOFMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected