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 

Network programming on a PS2

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



Joined: 05 May 2005
Posts: 6

PostPosted: Thu May 05, 2005 11:10 pm    Post subject: Network programming on a PS2 Reply with quote

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
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Thu May 05, 2005 11:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dev48



Joined: 05 May 2005
Posts: 6

PostPosted: Thu May 05, 2005 11:44 pm    Post subject: Reply with quote

So we can do Peer to Peer and Client/Server on PS2 : what a great console!!!
Back to top
View user's profile Send private message
Oobles
Site Admin


Joined: 17 Jan 2004
Posts: 362
Location: Melbourne, Australia

PostPosted: Thu May 05, 2005 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Dev48



Joined: 05 May 2005
Posts: 6

PostPosted: Thu May 05, 2005 11:58 pm    Post subject: Reply with quote

So last question:
what do you advise me : peer to peer or client/server? What is the best solution?
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Fri May 06, 2005 12:12 am    Post subject: Reply with quote

the best solution is the one suited for your needs, no go forth and code :)
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Dev48



Joined: 05 May 2005
Posts: 6

PostPosted: Fri May 06, 2005 12:18 am    Post subject: Reply with quote

Thanks for all your answer!!!

My needs is for a race car game.... So I don't know what to use... :(
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri May 06, 2005 4:46 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
apache37



Joined: 04 Jun 2004
Posts: 76

PostPosted: Fri May 06, 2005 7:00 am    Post subject: Reply with quote

Is dhcp working in the new ps2sdk setup?
Back to top
View user's profile Send private message
Dev48



Joined: 05 May 2005
Posts: 6

PostPosted: Fri May 06, 2005 7:13 am    Post subject: Reply with quote

Thanks for all of your answers!!
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Fri May 06, 2005 8:38 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Fri May 06, 2005 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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