MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / sendReq

Method sendReq

libapp2sys/src/main/cpp/client.h:301–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

genReqPackFunction · 0.85

Tested by

no test coverage detected