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

Method ProcessMessage

test/brpc_public_pbrpc_protocol_unittest.cpp:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ReAddressMethod · 0.80
PostponeEOFMethod · 0.80
SetEOFMethod · 0.80

Tested by

no test coverage detected