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

Method ProcessMessage

test/brpc_sofa_pbrpc_protocol_unittest.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 void ProcessMessage(void (*process)(brpc::InputMessageBase*),
120 brpc::InputMessageBase* msg, bool set_eof) {
121 if (msg->_socket == NULL) {
122 _socket->ReAddress(&msg->_socket);
123 }
124 msg->_arg = &_server;
125 _socket->PostponeEOF();
126 if (set_eof) {
127 _socket->SetEOF();
128 }
129 (*process)(msg);
130 }
131
132 brpc::policy::MostCommonMessage* MakeRequestMessage(
133 const brpc::policy::SofaRpcMeta& meta) {

Callers

nothing calls this directly

Calls 3

ReAddressMethod · 0.80
PostponeEOFMethod · 0.80
SetEOFMethod · 0.80

Tested by

no test coverage detected