Hi Guys,
Was using SDL_Net library for my game’s network part.
Am using a Linux box and running the program as a
normal user.
But am getting this error:
Any idea guys ?
Sdl resolve return value : 16777343
host resolved is : mypc
SDLNet_TCP_Open : Couldn’t connect to remote host
/* Code Starts Here*/
void creat()
{
socket = SDLNet_TCP_Open(ipaddress);
if(!socket)
{
cout<<"SDLNet_TCP_Open : "<<SDL_GetError()<<endl;
exit(5);
}
}
/Code Ends Here/
Thnx in advance
Visu________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com
Hi Guys,
Was using SDL_Net library for my game’s network part.
Am using a Linux box and running the program as a
normal user.
But am getting this error:
Any idea guys ?
Sdl resolve return value : 16777343
host resolved is : mypc
SDLNet_TCP_Open : Couldn’t connect to remote host
Best guess is that it can’t resolve the host name “mypc”. Are you sure
that name is defined some where? Which resolution routine are you using
and how do you set it up. Frankly, the resolve value you list makes no
sense to me at all
ResolveHost is supposed to return 0 or -1, which
that is not, and it is not a valid port number either.
Bob PendletonOn Thu, 2003-10-30 at 05:07, Vishwanath V wrote:
/* Code Starts Here*/
void creat()
{
socket = SDLNet_TCP_Open(ipaddress);
if(!socket)
{
cout<<"SDLNet_TCP_Open : "<<SDL_GetError()<<endl;
exit(5);
}
}
/Code Ends Here/
Thnx in advance
Visu
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
±--------------------------------------+