| 157 | } |
| 158 | |
| 159 | int 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 | |
| 181 | int IMtAction::DoProcess() |
| 182 | { |
no test coverage detected