MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / StartClient

Method StartClient

NetworkClient.cpp:138–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void NetworkClient::StartClient()
139{
140 //Start a TCP server and launch threads
141 char port_str[6];
142 snprintf(port_str, 6, "%d", port_num);
143
144 port.tcp_client(port_ip.c_str(), port_str);
145
146 client_active = true;
147
148 //Start the connection thread
149 ConnectionThread = new std::thread(&NetworkClient::ConnectionThreadFunction, this);
150
151 /*-------------------------------------------------*\
152 | Client info has changed, call the callbacks |
153 \*-------------------------------------------------*/
154 ClientInfoChanged();
155}
156
157void NetworkClient::StopClient()
158{

Callers 4

cli_pre_detectionFunction · 0.80
ResourceManagerMethod · 0.80
AttemptLocalConnectionFunction · 0.80

Calls 2

snprintfFunction · 0.85
tcp_clientMethod · 0.80

Tested by

no test coverage detected