Page 1 of 1

net_init failed = -24?

Posted: Sun Oct 10, 2010 10:43 pm
by DarkMatterCore
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?

Re: net_init failed = -24?

Posted: Mon Oct 11, 2010 1:12 am
by WinterMute
The sockettest example provided in the wii examples works fine for me. Try that, see if it works for you.

Re: net_init failed = -24?

Posted: Mon Oct 25, 2010 1:38 am
by DarkMatterCore
Can you see the network initialization code?

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;
	}
I don't see where the problem is...

Re: net_init failed = -24?

Posted: Wed Nov 03, 2010 9:41 pm
by DarkMatterCore
Nevermind, used the if_config function and everything seems all right. Sorry for being such a headache.