| View previous topic :: View next topic |
| Author |
Message |
Dev48
Joined: 05 May 2005 Posts: 6
|
Posted: Thu May 05, 2005 11:10 pm Post subject: Network programming on a PS2 |
|
|
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... |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Thu May 05, 2005 11:37 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Dev48
Joined: 05 May 2005 Posts: 6
|
Posted: Thu May 05, 2005 11:44 pm Post subject: |
|
|
| So we can do Peer to Peer and Client/Server on PS2 : what a great console!!! |
|
| Back to top |
|
 |
Oobles Site Admin
Joined: 17 Jan 2004 Posts: 362 Location: Melbourne, Australia
|
Posted: Thu May 05, 2005 11:54 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Dev48
Joined: 05 May 2005 Posts: 6
|
Posted: Thu May 05, 2005 11:58 pm Post subject: |
|
|
So last question:
what do you advise me : peer to peer or client/server? What is the best solution? |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Fri May 06, 2005 12:12 am Post subject: |
|
|
the best solution is the one suited for your needs, no go forth and code :) _________________ Kung VU |
|
| Back to top |
|
 |
Dev48
Joined: 05 May 2005 Posts: 6
|
Posted: Fri May 06, 2005 12:18 am Post subject: |
|
|
Thanks for all your answer!!!
My needs is for a race car game.... So I don't know what to use... :( |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri May 06, 2005 4:46 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
apache37
Joined: 04 Jun 2004 Posts: 76
|
Posted: Fri May 06, 2005 7:00 am Post subject: |
|
|
| Is dhcp working in the new ps2sdk setup? |
|
| Back to top |
|
 |
Dev48
Joined: 05 May 2005 Posts: 6
|
Posted: Fri May 06, 2005 7:13 am Post subject: |
|
|
| Thanks for all of your answers!! |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Fri May 06, 2005 8:38 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Fri May 06, 2005 9:04 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|