Author: DavidCzech Date: 2009-01-04 01:24:02 -0500 (Sun, 04 Jan 2009) New Revision: 1420
Modified: trunk/concordance/src/Core.c Log: Another Windows Specific Fix Modified: trunk/concordance/src/Core.c =================================================================== --- trunk/concordance/src/Core.c 2009-01-04 05:47:44 UTC (rev 1419) +++ trunk/concordance/src/Core.c 2009-01-04 06:24:02 UTC (rev 1420) @@ -25,7 +25,11 @@ #ifdef MS_WINDOWS #include <ws2tcpip.h> +#include <Winsock2.h> +//#define wsa_get_ready() if( !wsa_is_ready ) {WSADATA wd; WSAStartup( MAKEWORD(2,2), &wd ); wsa_is_ready = 1; } +WSADATA wsaData; + #else #include <sys/socket.h> @@ -35,6 +39,8 @@ #include "Core.h" + + static gpointer conCore_loop (gpointer); static int conCore_listenChannel (conCoreObject*, conSocket*); static gboolean conCore_listenNew (GIOChannel*, GIOCondition, gpointer); @@ -64,6 +70,12 @@ conCoreObject* self = (conCoreObject*) s; static char* kwlist[] = {"client", "server", 0}; + + #ifdef MS_WINDOWS + if (WSAStartup( MAKEWORD(2,2), &wsaData )){ + printf("FAIL\n"); + } + #endif /* set defaults for optional arguments 0.0.0.0 listens on every IP interface @@ -200,6 +212,9 @@ struct addrinfo* resinfo = NULL; GSource* source; + + + /* Get address family and struct int getaddrinfo(const char *node, const char *service, _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn