networking help

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

Moderators: cheriff, Herben

Post Reply
ubergeek42
Posts: 83
Joined: Wed Jul 13, 2005 12:25 am

networking help

Post by ubergeek42 »

What is the best way to debug a failed connect() call? Can I use errno.h and check the value of errno when it fails to see a slightly more descriptive reason behind the problem, other then it failed.(if thats the case is there something special I need to do, because the value in errno when I check it is 0)

Also, Im only loading ps2ips.irx to get networking abilities(when loading from ps2link), what other networking related modules will I need to load if I were to add an IOP reset to my program.

Lastly, are there any networking examples besides ee_echo.c(which was rather helpful).
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

There has been a history of issues with ps2ip, and even more often with ps2ips...

Using ethereal to capture packets and see what is going on will often be the best debug tool...

I'm not sure of the current state of things, but at least with previous versions resetting the iop was more or less required, and you really needed to do tcpip work on the iop as ps2ips didn't work right.

If you are resetting the iop, you need the following I believe:
ps2dev9
ps2ip
ps2smap

Checking out ps2link will give you more info, as it's about the best example. There used to be some iop based samples but I do not see them in the sdk install for some reason.
Shoot Pixels Not People!
Makeshift Development
ubergeek42
Posts: 83
Joined: Wed Jul 13, 2005 12:25 am

Post by ubergeek42 »

Thanks, I'll definitly take a look at ps2link, and ethereal.
Post Reply