I was implementing network stuff based on that sample.
here is the critical code
Code: Select all
DU32 TryCount=0;
DU32 StateLast=~0;
while(TryCount<50)
{
D_LOG_INFO("Try: %d",TryCount++);
DS32 State=~0;
if((Ret=sceNetApctlGetState(&State)) != 0)
{
D_LOG_CRITICAL("failed with code: 0x%x %d",Ret,Ret);
break;
}
if(State!=StateLast)
{
D_LOG_INFO("connection state %d of 4",State);
StateLast = State;
}
if(State == 4)
{
D_LOG_INFO("Successfull");
Connected = true;
break; // connected with static IP
}
// yield
sceKernelDelayThread((g_Logger.LogLevel()==EDLE_INFO?500:50)*1000);
}
Code: Select all
Initialising Network Manager
calling pspSdkLoadInetModules()
done
calling pspSdkInetInit()
done
calling sceNetApctlConnect(0)
done
Connecting...
Try: 0
connection state 2 of 4
Try: 1
Try: 2
Try: 3
Try: 4
connection state 0 of 4
Try: 5
Try: 6
Try: 7
Try: 8...
so I started the sample, it compares state>stateLast instead of != in my case, anyway. it stucks at:
Code: Select all
...
connection state 0 of 4
connection state 2 of 4
some pages on the net (not related to programming tho), said u need to hardcode the ip instead of hdcp, I did this, but nothing changed (browser still works).
I'm working with devkitPro/devkitPSP 11
my PSP-FW is 3.40 OE-A
i'm deving for 1.50, so I put all my eboots in the psp\game150\gamename\ folder.
any idea what might be wrong? I ran out of ideas (and searching on the web and here didn't really help now).
thx in advance
rapso