| 269 | } |
| 270 | |
| 271 | void 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 | |
| 287 | void Visualizer::InitServer(char * serverstring) |
| 288 | { |
no outgoing calls
no test coverage detected