net_init failed = -24?

Post Reply
User avatar
DarkMatterCore
Posts: 7
Joined: Sun Oct 10, 2010 10:26 pm
Contact:

net_init failed = -24?

Post by DarkMatterCore » Sun Oct 10, 2010 10:43 pm

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?

WinterMute
Site Admin
Posts: 1955
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: net_init failed = -24?

Post by WinterMute » Mon Oct 11, 2010 1:12 am

The sockettest example provided in the wii examples works fine for me. Try that, see if it works for you.
Help keep devkitPro toolchains free, Donate today

Personal Blog

User avatar
DarkMatterCore
Posts: 7
Joined: Sun Oct 10, 2010 10:26 pm
Contact:

Re: net_init failed = -24?

Post by DarkMatterCore » Mon Oct 25, 2010 1:38 am

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...

User avatar
DarkMatterCore
Posts: 7
Joined: Sun Oct 10, 2010 10:26 pm
Contact:

Re: net_init failed = -24?

Post by DarkMatterCore » Wed Nov 03, 2010 9:41 pm

Nevermind, used the if_config function and everything seems all right. Sorry for being such a headache.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests