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 8399739 commit f25fbbeCopy full SHA for f25fbbe
src/dds.net-connector-cpp.lib/connector/src/internal/src/network_client.cpp
@@ -56,10 +56,16 @@ dds::net::connector::_internal::
56
this->ipv4 = "";
57
this->tcpPort = 0;
58
this->isConnected = false;
59
+
60
this->socketFileDescriptor = -1;
61
+#elif TARGET_PLATFORM == PLATFORM_WINDOWS
62
+ this->socketFileDescriptor = INVALID_SOCKET;
63
+#else
64
+ #error "Cannot initialize this->socketFileDescriptor on selected platform"
65
+#endif
66
- memset(&this->targetSocketAddress, 0, sizeof(this->targetSocketAddress));
67
68
+ memset(&this->targetSocketAddress, 0, sizeof(this->targetSocketAddress));
69
70
71
#if TARGET_PLATFORM == PLATFORM_WINDOWS
0 commit comments