| 11 | #pragma comment(lib, "AdvApi32.lib") |
| 12 | |
| 13 | SocketServerTCP::SocketServerTCP (const char *local_ip, int local_port, bool recv_all_or_nothing) |
| 14 | { |
| 15 | strcpy (this->local_ip, local_ip); |
| 16 | this->local_port = local_port; |
| 17 | this->recv_all_or_nothing = recv_all_or_nothing; |
| 18 | server_socket = INVALID_SOCKET; |
| 19 | connected_socket = INVALID_SOCKET; |
| 20 | client_connected = false; |
| 21 | wsa_initialized = false; |
| 22 | } |
| 23 | |
| 24 | int SocketServerTCP::bind () |
| 25 | { |
nothing calls this directly
no outgoing calls
no test coverage detected