[SDL] SDLNet_resolveHost

santi santi.ontanon at terra.es
Sun Sep 18 03:58:40 PDT 2005


I'm trying to obtain the IP of my local machine using SDL_net. If I 
haven't misunderstood the SDL_net manual, using:

IPaddress ip;
if (SDLNet_ResolveHost(&ip,0,network_port)!=0) {
} // if

should fill the "ip" variable with the IP of my machine. But this just 
returns, Have I misunderstood something?

thanks in advance


More information about the SDL mailing list