okay well I am trying to work on adhoc for luaplayer. I have a working ad-hoc example in C. but it isn't turning out so well for luaplayer because of the damn C++. I can get it to init the libs and connect with sceNetAdhocctlConnect(""); just fine but it freezes upon trying to create. I know I'm probably doing something rediculously wrong.
static int adhoc_CreatePDP(lua_State *L)
{
char mac[6];
int err;
//Already tested and its not this that freezes it.
sceWlanGetEtherAddr((unsigned char*)mac);
if(pdpID < 0)
{
//Here is where I believe the trouble is
pdpID = sceNetAdhocPdpCreate((unsigned char*)mac, 0x309, 0x400, 0);
}
if(pdpID < 0)
lua_pushnumber(L, 0);
else
lua_pushnumber(L, 1);
return 1;
}
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin