| 179 | } |
| 180 | |
| 181 | int 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 | |
| 203 | int IMtAction::DoError() |
| 204 | { |
no test coverage detected