#include <arpa/inet.h>
#include <netdb.h>
#endif
-#ifndef _MSC_VER
+#ifndef WIN32
#include <unistd.h>
-#else
-#include <io.h>
#endif
#include <time.h>
#include <errno.h>
int rc = -3;
if(bind(sock, (struct sockaddr*)&client, sizeof(client)) >= 0)
rc = StunRequest2(sock, &server, mapped);
-#ifndef _MSC_VER
+#ifndef WIN32
close(sock);
#else
- _close(sock);
+ closesocket(sock);
#endif
return rc;
} // StunRequest