Page 1 of 1
Network programming on a PS2
Posted: Thu May 05, 2005 11:10 pm
by Dev48
Hi!
I am a very newby in PS2 development.
I know that PS2 can handle network game. But I would know how to program them.
1) Does PS2 use Peer to peer or CLient/server protocols?
2) Does PS2 use Sockets as a pC does?
3) Are there any tutorials about netword programming on PS2?
Thanks in advance!
Dev
PS : sorry for my poor english...
Posted: Thu May 05, 2005 11:37 pm
by Drakonite
2) IIRC PS2IP uses bsd sockets or something like that (I'm not a networking guru, so only listen to that if you are and that still makes sense)
The rest is pretty much all up to you.
Posted: Thu May 05, 2005 11:44 pm
by Dev48
So we can do Peer to Peer and Client/Server on PS2 : what a great console!!!
Posted: Thu May 05, 2005 11:54 pm
by Oobles
Just to confirm Drakonite's rather vague response. ps2sdk includes a port of lwip (Light Weight IP stack) which is what is used by ps2link, etc. There is also DNS resolver and HTTP client file driver.
1) PS2IP uses a basic sockets interface with all the basic APIs implemented. There has been problems with select() in the past, but I believe that is fixed now.
2) Yes. It's sockets based.
3) Not much. You're best looking at the code included in ps2sdk. As it is socket based, you should also be able to refer to other documents on the net.
Oobles.
Posted: Thu May 05, 2005 11:58 pm
by Dev48
So last question:
what do you advise me : peer to peer or client/server? What is the best solution?
Posted: Fri May 06, 2005 12:12 am
by blackdroid
the best solution is the one suited for your needs, no go forth and code :)
Posted: Fri May 06, 2005 12:18 am
by Dev48
Thanks for all your answer!!!
My needs is for a race car game.... So I don't know what to use... :(
Posted: Fri May 06, 2005 4:46 am
by J.F.
Old games like DOOM used peer to peer. You had a small number of identical (virtually) users exchanging small packets. Modern games are nearly always client/server to better handle the differences in systems and (particularly) the lag in communications across the net with larger packets.
If you have a simple head-to-head race game with a VERY small packet, I'd probably just go peer to peer. It's much simpler. If you're trying to link 30-odd people in a huge Indy F1 race, better go client/server.
Posted: Fri May 06, 2005 7:00 am
by apache37
Is dhcp working in the new ps2sdk setup?
Posted: Fri May 06, 2005 7:13 am
by Dev48
Thanks for all of your answers!!
Posted: Fri May 06, 2005 8:38 am
by blackdroid
apache37 wrote:Is dhcp working in the new ps2sdk setup?
im not sure if the dhcp calls in ps2ip works, try and find out.
Posted: Fri May 06, 2005 9:04 am
by pixel
Won't work.