| 89 | default: |
| 90 | return "Error"; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | class SocketRuntime { |
| 95 | public: |
| 96 | SocketRuntime() { |
| 97 | #ifdef _WIN32 |
| 98 | WSADATA data; |
| 99 | const int rc = WSAStartup(MAKEWORD(2, 2), &data); |
| 100 | if (rc != 0) { |
| 101 | throw std::runtime_error("WSAStartup failed: " + std::to_string(rc)); |
| 102 | } |
| 103 | #endif |
no outgoing calls
no test coverage detected