Page 1 of 1

networking help

Posted: Sun Jul 23, 2006 1:39 pm
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).

Posted: Sun Jul 23, 2006 2:36 pm
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.

Posted: Sun Jul 23, 2006 11:13 pm
by ubergeek42
Thanks, I'll definitly take a look at ps2link, and ethereal.