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

Method start

libapp2sys/src/main/cpp/server.h:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 int start(const char *path, HardCoder *hardCoder) {
135 inst = hardCoder;
136 running = 1;
137 pthread_t tid;
138 pthread_create(&tid, NULL, localServerRespThread, this);
139 int ret = createSocket(path, "");
140 return ret > 0 ? startLoop(1) : ret;
141 }
142
143 int onCallback(int uid, int funcid, uint64_t requestid, int bodyFormat, uint64_t timestamp, int retCode, uint8_t *data, int len) {
144 pdbg("onCallback uid:%d funcid:%d, len:%d", uid, funcid, len);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected