Hello there, little help with networking

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

Moderators: cheriff, Herben

Post Reply
methos3
Posts: 89
Joined: Fri Feb 01, 2008 3:21 am

Hello there, little help with networking

Post by methos3 »

Hello, ps2dev people!
I am making a program that wil use TCP/IP to transfer files between different platforms.
I was wondering if it would be possible to make this program to the ps2 too.
Well, probably yes, but I need to know some little things to start on the ps2.
I am planing to make this program to run on Windows, Linux, and on the PS2.
For this, I will make some questions:
1) the ps2sdk provides socket-based tcp/ip programing?
2) the ps2sdk will support dhcp, or only fixed IP?
3) If it's socket-based, there is any guide/sample/tutorial on how to use its sockets?

Thanks!

ps.: it isn't a great project, (for now, at least) if you want to use a great file transfer program, use the uLaunchelf ;)
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

Post by cosmito »

As far I know there is no documentation, but I guess the examples and source should guide you. Check the sdk's sources (ps2sdk\iop\tcpip).
methos3
Posts: 89
Joined: Fri Feb 01, 2008 3:21 am

Post by methos3 »

Heya, thx, friend!
I've found the ps2ip.h, it have almost all of the functions of the winsock.h, but... What can I do to use an asynchronous mode? And the DHCP, the ps2sdk already supports DHCP?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Probably not. Look at existing programs that use networking: SMS and uLE. Both are open source and use the networking in a significant manner.
methos3
Posts: 89
Joined: Fri Feb 01, 2008 3:21 am

Post by methos3 »

Hey, thx for the help!
I've searched a little more on my own and found that the SDL port provides multithreading, and I will use this to make my server then.
Thx for the help!
Post Reply