MCPcopy Create free account
hub / github.com/CalcProgrammer1/KeyboardVisualizer / InitClient

Method InitClient

KeyboardVisualizerCommon/Visualizer.cpp:271–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void Visualizer::InitClient(char * clientstring)
272{
273 if (netmode == NET_MODE_DISABLED)
274 {
275 net_string = new char[strlen(clientstring) + 1];
276 strcpy(net_string, clientstring);
277 LPSTR client_name;
278 LPSTR port_name;
279 client_name = strtok_s(clientstring, ",", &port_name);
280
281 netmode = NET_MODE_CLIENT;
282 port = new net_port();
283 port->tcp_client(client_name, port_name);
284 }
285}
286
287void Visualizer::InitServer(char * serverstring)
288{

Callers 1

parse_argument_stringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected