Network programming on a PS2

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Dev48
Posts: 6
Joined: Thu May 05, 2005 11:02 pm

Network programming on a PS2

Post 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...
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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.
Shoot Pixels Not People!
Makeshift Development
Dev48
Posts: 6
Joined: Thu May 05, 2005 11:02 pm

Post by Dev48 »

So we can do Peer to Peer and Client/Server on PS2 : what a great console!!!
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post 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.
Dev48
Posts: 6
Joined: Thu May 05, 2005 11:02 pm

Post by Dev48 »

So last question:
what do you advise me : peer to peer or client/server? What is the best solution?
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

the best solution is the one suited for your needs, no go forth and code :)
Kung VU
Dev48
Posts: 6
Joined: Thu May 05, 2005 11:02 pm

Post by Dev48 »

Thanks for all your answer!!!

My needs is for a race car game.... So I don't know what to use... :(
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post 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.
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Post by apache37 »

Is dhcp working in the new ps2sdk setup?
Dev48
Posts: 6
Joined: Thu May 05, 2005 11:02 pm

Post by Dev48 »

Thanks for all of your answers!!
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post 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.
Kung VU
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Won't work.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Post Reply