We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc98d0f commit 6d014fbCopy full SHA for 6d014fb
StratumClient.cpp
@@ -256,6 +256,15 @@ void StratumClient::connect() {
256
_state = INIT;
257
_result = std::string();
258
259
+#ifdef _WIN32
260
+ WORD wVersionRequested(MAKEWORD(2, 2));
261
+ WSADATA wsaData;
262
+ int err(WSAStartup(wVersionRequested, &wsaData));
263
+ if (err != 0) {
264
+ ERRORMSG("WSAStartup failed with error: " << err);
265
+ return;
266
+ }
267
+#endif
268
hostent* hostInfo = gethostbyname(_host.c_str());
269
if (hostInfo == nullptr) {
270
std::cout << __func__ << ": unable to resolve '" << _host << "'. Check the URL or your connection." << std::endl;
0 commit comments