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

Method ProcessMessage

test/brpc_nova_pbrpc_protocol_unittest.cpp:114–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 void ProcessMessage(void (*process)(brpc::InputMessageBase*),
115 brpc::InputMessageBase* msg, bool set_eof) {
116 if (msg->_socket == NULL) {
117 _socket->ReAddress(&msg->_socket);
118 }
119 msg->_arg = &_server;
120 _socket->PostponeEOF();
121 if (set_eof) {
122 _socket->SetEOF();
123 }
124 (*process)(msg);
125 }
126
127 brpc::policy::MostCommonMessage* MakeRequestMessage(
128 const brpc::nshead_t& head) {

Callers

nothing calls this directly

Calls 3

ReAddressMethod · 0.80
PostponeEOFMethod · 0.80
SetEOFMethod · 0.80

Tested by

no test coverage detected