net_gethostbyname returns null?
October 18, 2009 04:53PM
Can anybody help me on this? I can get on the internet with opera, the homebrew channel, and the homebrew browser.
But in my program, net_gethostbyname returns null, which makes my example break.
struct hostent* phe;
  phe = net_gethostbyname((char*)host);
  if(phe==NULL){
    printf("net_gethostbyname:NULL\n");
    return;
  }
I'm feeding it "www.ruby-lang.org", like in the tutorial, but it just returns null, and then the tutorial exits.
The question is, why does it return null? it worked before...
Thanks, for the help.
Re: net_gethostbyname returns null?
October 18, 2009 08:29PM
Something changed on the server end?
Re: net_gethostbyname returns null?
October 18, 2009 08:34PM
Re: net_gethostbyname returns null?
October 18, 2009 08:44PM
You said it worked before, so obviously nothing on your end (the client end) changed. So I'm suggesting that something changed on the server end (the host of "www.ruby-lang.org") that is preventing your example from working now. What it is, I have no idea.
Re: net_gethostbyname returns null?
October 19, 2009 12:24PM
I've got it now.
I made a code that makes the wii wait until connecting. ^_^
Now it works fine, thanks!
Re: net_gethostbyname returns null?
October 20, 2009 11:34PM
Quote
KolakCC
I've got it now.
I made a code that makes the wii wait until connecting. ^_^
Now it works fine, thanks!
Mind sharing?
Sorry, only registered users may post in this forum.

Click here to login