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

Method DoInput

adapter/micro_thread/mt_action.cpp:159–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159int IMtAction::DoInput()
160{
161 MtMsgBuf* msg_buff = NULL;
162 if (_conn) {
163 msg_buff = _conn->GetMtMsgBuff();
164 }
165 if (!_conn || !msg_buff) {
166 MTLOG_ERROR("conn(%p) or msgbuff(%p) null", _conn, msg_buff);
167 return -100;
168 }
169
170 int msg_len = msg_buff->GetHaveRcvLen();
171 int ret = this->HandleInput(msg_buff->GetMsgBuff(), msg_len, _msg);
172 if (ret < 0)
173 {
174 MTLOG_DEBUG("HandleInput failed, ret %d", ret);
175 return ret;
176 }
177
178 return ret;
179}
180
181int IMtAction::DoProcess()
182{

Callers 1

RecvDataMethod · 0.80

Calls 4

HandleInputMethod · 0.95
GetMtMsgBuffMethod · 0.80
GetHaveRcvLenMethod · 0.80
GetMsgBuffMethod · 0.80

Tested by

no test coverage detected