forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems with sceNetAdhocPdpCreate

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Wed Mar 19, 2008 4:24 am    Post subject: Problems with sceNetAdhocPdpCreate Reply with quote

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.

Code:

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
Back to top
View user's profile Send private message AIM Address
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Wed Mar 19, 2008 6:14 am    Post subject: Reply with quote

ok I lied.. jk. I just made a seperate C file and it works fine.. the send works now.. the recv isn't though :( still working on it.
_________________
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group