I am working on a game right now that will require network access, how would i be able to send packets and stuff to the master server? I know how to get all of the user's network configuration and stuff, but not how to send packets/threads/files whatever their called...
Sry if i sound noob-ie, but im new to PSP programming, but not C/C++.
What are the PSP Network functions?
http://aibohack.com/psp/wifitest.htm
Search function rocks :)
-Sam
PS: Yup, they're packets. :P If you're not noob to C++ then you should have known that O.o
Search function rocks :)
-Sam
PS: Yup, they're packets. :P If you're not noob to C++ then you should have known that O.o
> Lol ok, but is there any simpler examples?
The core code is in nlh.c. Look at any of the packet send parts. It is four samples in one - pick one that is closest to your case.
The other features (like picking a connection, and checking for timeouts) are things you need to do.
If you have never used Berkeley style sockets before, you may want to read up on it first.
Eventually the WiFi APIs will be supported in the SDK, and samples can be much simpler.
The core code is in nlh.c. Look at any of the packet send parts. It is four samples in one - pick one that is closest to your case.
The other features (like picking a connection, and checking for timeouts) are things you need to do.
If you have never used Berkeley style sockets before, you may want to read up on it first.
Eventually the WiFi APIs will be supported in the SDK, and samples can be much simpler.
You're not seeing many functions because they're only declarations in the my_socket.h file (the firmware does the actual gruntwork)
What might be easier is if you do what PspPet said and learn about old school sockets. The easiest way down that path is to learn winsock.
When you have that understood, the transition to PSP networking can almost be seamless.
Just do something like this in the my_socket.h file:
Etc etc. The methods look strange now, but as I said earlier, a quick dabble in Winsock should get you on track.
-Sam
Pssssst... http://msdn.microsoft.com/library/defau ... erence.asp :)
What might be easier is if you do what PspPet said and learn about old school sockets. The easiest way down that path is to learn winsock.
When you have that understood, the transition to PSP networking can almost be seamless.
Just do something like this in the my_socket.h file:
Code: Select all
#define bind sceNetInetBind
#define listen sceNetInetListen
#define accept sceNetInetAccept
#define connect sceNetInetConnect
-Sam
Pssssst... http://msdn.microsoft.com/library/defau ... erence.asp :)