For Windows sockets, one has to call closesocket() to
close the sockets.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
memset(ssp, 0, sizeof *ssp);
}
if (fd >= 0) {
memset(ssp, 0, sizeof *ssp);
}
if (fd >= 0) {
if (ssp) {
memset(ssp, 0, sizeof *ssp);
}
if (ssp) {
memset(ssp, 0, sizeof *ssp);
}
+#ifndef _WIN32
+#define closesocket close
+#endif
+
#endif /* socket-util.h */
#endif /* socket-util.h */
* compiled with /MD is not tested. */
#include <openssl/applink.c>
#define SHUT_RDWR SD_BOTH
* compiled with /MD is not tested. */
#include <openssl/applink.c>
#define SHUT_RDWR SD_BOTH
-#else
-#define closesocket close
#endif
VLOG_DEFINE_THIS_MODULE(stream_ssl);
#endif
VLOG_DEFINE_THIS_MODULE(stream_ssl);