net_init failed = -24?
- DarkMatterCore
- Posts: 7
- Joined: Sun Oct 10, 2010 10:26 pm
- Contact:
net_init failed = -24?
I tried to recompile an application with the lastest libogc (1.8.4) and whenever I want to initialize the network it fails and gives me that error almost instantly (like if it doesn't even try to connect to internet). I've heard about the error -116, but not about this one. I'm using the http.c/h from PatchMii Core (by bushing), btw. Is it a bug on the libraries? What can I do to solve this?
-
- Site Admin
- Posts: 1955
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: net_init failed = -24?
The sockettest example provided in the wii examples works fine for me. Try that, see if it works for you.
- DarkMatterCore
- Posts: 7
- Joined: Sun Oct 10, 2010 10:26 pm
- Contact:
Re: net_init failed = -24?
Can you see the network initialization code?
I don't see where the problem is...
Code: Select all
static bool network_initialized = false;
if (!network_initialized)
{
printf("Initializing network...");
while (1)
{
ret = net_init ();
if (ret < 0)
{
//if (ret != -EAGAIN)
if (ret != -11)
{
printf ("net_init failed: %d\n", ret);
goto err;
}
}
if (!ret) break;
usleep(100000);
printf(".");
}
printf("done\n");
network_initialized = true;
}
- DarkMatterCore
- Posts: 7
- Joined: Sun Oct 10, 2010 10:26 pm
- Contact:
Re: net_init failed = -24?
Nevermind, used the if_config function and everything seems all right. Sorry for being such a headache.
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests