From b792e3d6ad4ec26ba35f58afdd97e7a94d4207bb Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 24 Jun 2013 17:41:19 -0400 Subject: Updated DHT_test with WSA stuff. --- testing/DHT_test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'testing') diff --git a/testing/DHT_test.c b/testing/DHT_test.c index a7c61e7f..29c25e0a 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c @@ -26,6 +26,14 @@ int main(int argc, char *argv[]) { + #ifdef WIN32 + WSADATA wsaData; + if(WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) + { + return -1; + } + #endif + if (argc < 3) { printf("usage %s ip port\n", argv[0]); exit(0); @@ -82,5 +90,9 @@ int main(int argc, char *argv[]) } c_sleep(100); } + + #ifdef WIN32 + WSACleanup(); + #endif return 0; } \ No newline at end of file -- cgit v1.2.3