MCPcopy Create free account
hub / github.com/apache/thrift / process

Method process

lib/cpp/src/thrift/TDispatchProcessor.h:108–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106class TDispatchProcessor : public TProcessor {
107public:
108 bool process(std::shared_ptr<protocol::TProtocol> in,
109 std::shared_ptr<protocol::TProtocol> out,
110 void* connectionContext) override {
111 std::string fname;
112 protocol::TMessageType mtype;
113 int32_t seqid;
114 in->readMessageBegin(fname, mtype, seqid);
115
116 if (mtype != protocol::T_CALL && mtype != protocol::T_ONEWAY) {
117 TOutput::instance().printf("received invalid message type %d from client", mtype);
118 return false;
119 }
120
121 return dispatchCall(in.get(), out.get(), fname, seqid, connectionContext);
122 }
123
124protected:
125 virtual bool dispatchCall(apache::thrift::protocol::TProtocol* in,

Callers

nothing calls this directly

Calls 3

printfMethod · 0.80
readMessageBeginMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected