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

Method sendReq

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

Source from the content-addressed store, hash-verified

101 }
102
103 int64_t sendReq(int funcid, uint8_t *data, int dataLen, int tid, int64_t timestamp) {
104 if (!isRunning()) {
105 return -1;
106 }
107 uint8_t *pack = NULL;
108 uint32_t packLen = 0;
109 int64_t id = genReqPack(funcid, data, dataLen, &pack, &packLen, tid, timestamp);
110 if (id <= 0) {
111 delete[] pack;
112 return id;
113 }
114 send(m_addr, pack, packLen);
115 delete[] pack;
116 return id;
117 }
118
119 int start(const char *ip, const int port, const int timeout, IHardCoderDataCallback *callback) {
120 m_addr = toSockaddr(ip, port);

Callers 15

checkPermissionMethod · 0.45
requestCpuHighFreqMethod · 0.45
cancelCpuHighFreqMethod · 0.45
requestGpuHighFreqMethod · 0.45
cancelGpuHighFreqMethod · 0.45
requestHighIOFreqMethod · 0.45
cancelHighIOFreqMethod · 0.45
resetScreenResolutionMethod · 0.45
registerANRCallbackMethod · 0.45

Calls 1

genReqPackFunction · 0.85

Tested by

no test coverage detected