| 299 | } |
| 300 | |
| 301 | int64_t sendReq(int funcid, uint8_t *data, int dataLen, int tid, int64_t timestamp) { |
| 302 | if (!isRunning()) { |
| 303 | return -1; |
| 304 | } |
| 305 | uint8_t *pack = NULL; |
| 306 | uint32_t packLen = 0; |
| 307 | int64_t requestId = genReqPack(funcid, data, dataLen, &pack, &packLen, tid, timestamp); |
| 308 | if (requestId <= 0) { |
| 309 | perr("genReqPack failed, requestId:%lld", requestId); |
| 310 | delete[] pack; |
| 311 | return requestId; |
| 312 | } |
| 313 | clientSendData(pack, packLen); |
| 314 | delete[] pack; |
| 315 | return requestId; |
| 316 | } |
| 317 | |
| 318 | }; |
| 319 |
nothing calls this directly
no test coverage detected