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

Method start

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

Source from the content-addressed store, hash-verified

117 }
118
119 int start(const char *ip, const int port, const int timeout, IHardCoderDataCallback *callback) {
120 m_addr = toSockaddr(ip, port);
121 m_timeout = timeout;
122 m_DataCallback = callback;
123
124 int ret = createSocket("", 0, m_timeout);
125 if (ret > 0) {
126 __sync_fetch_and_add(&m_runningFlag, 1);
127 pthread_t tid;
128 pthread_create(&tid, NULL, udpClientThread, this);
129 }
130 return 0;
131 }
132};
133
134class LocalsocketClient : public LocalSocket, public IClientEngine {

Callers 7

tryStartEngineMethod · 0.45
mainFunction · 0.45
onClickMethod · 0.45
runMethod · 0.45
onPreparedMethod · 0.45
onClickMethod · 0.45

Calls 1

toSockaddrFunction · 0.85

Tested by 4

onClickMethod · 0.36
runMethod · 0.36
onPreparedMethod · 0.36
onClickMethod · 0.36