MCPcopy Create free account
hub / github.com/F-Stack/f-stack / DoProcess

Method DoProcess

adapter/micro_thread/mt_action.cpp:181–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181int IMtAction::DoProcess()
182{
183 MtMsgBuf* msg_buff = NULL;
184 if (_conn) {
185 msg_buff = _conn->GetMtMsgBuff();
186 }
187 if (!_conn || !msg_buff) {
188 MTLOG_ERROR("conn(%p) or msgbuff(%p) null", _conn, msg_buff);
189 return -100;
190 }
191
192 int ret = this->HandleProcess(msg_buff->GetMsgBuff(), msg_buff->GetMsgLen(), _msg);
193 if (ret < 0)
194 {
195 MTLOG_DEBUG("handleprocess failed, ret %d", ret);
196 return ret;
197 }
198
199 return 0;
200
201}
202
203int IMtAction::DoError()
204{

Callers 1

mt_msg_sendrcvMethod · 0.80

Calls 4

HandleProcessMethod · 0.95
GetMtMsgBuffMethod · 0.80
GetMsgBuffMethod · 0.80
GetMsgLenMethod · 0.80

Tested by

no test coverage detected