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 297f9c4 commit dce6c7eCopy full SHA for dce6c7e
src/dds.net-connector-cpp.lib/connector/src/internal/src/network_client.cpp
@@ -46,6 +46,24 @@ dds::net::connector::_internal::
46
47
this->ipv4 = "";
48
this->tcpPort = 0;
49
+ this->socketFileDescriptor = -1;
50
+
51
+ memset(&this->targetSocketAddress, 0, sizeof(this->targetSocketAddress));
52
53
+#if TARGET_PLATFORM == PLATFORM_WINDOWS
54
55
+ WSADATA wsaData;
56
+ int windowsStartupResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
57
+ if (windowsStartupResult != 0)
58
+ {
59
+ std::string msg = "WSAStartup failed with return code: ";
60
+ msg += windowsStartupResult;
61
62
+ this->logger->error(msg.c_str());
63
+ return;
64
+}
65
66
+#endif
67
}
68
69
SyncQueueReader<PacketFromServer*>*
0 commit comments