Page 1 of 1

Hello there, little help with networking

Posted: Sat Dec 06, 2008 11:08 pm
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 ;)

Posted: Sun Dec 07, 2008 7:51 am
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).

Posted: Mon Dec 08, 2008 1:02 am
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?

Posted: Mon Dec 08, 2008 7:06 am
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.

Posted: Thu Dec 11, 2008 10:30 am
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!