Sdl_net: SDLNet_TCP_Open & windowsXP

My networking is all good on linux, then when i goto compile and run on
windows, it fails to open a tcp socket.

reliableClientsSet = SDLNet_AllocSocketSet( MAX_CONNECTIONS );
if( !reliableClientsSet )
{
		printf("SDLNet_AllocSocketSet: %s\n", SDLNet_GetError());
	return false;
}

if(SDLNet_ResolveHost( &ip, NULL, port ) == -1 )
{
		printf("SDLNet_ResolveHost: %s\n", SDLNet_GetError());
	return false;
}

return OpenReliable( port );

bool Server::OpenReliable( int port )
{
serverReliable = SDLNet_TCP_Open(&ip);
if( !serverReliable ) //FAILS HERE!!!
{
printf(“SDLNet_TCP_Open: %s\n”, SDLNet_GetError());
return false;
}

return true;
}-------------------------------
Fabian “SupaGu” Mathews


Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail