accept() fails ? networking issue
accept() fails ? networking issue
solved
Last edited by Ramja on Fri Dec 19, 2008 6:22 am, edited 1 time in total.
Hello!
I am starting a little program to send and receive messages/files for the PS2 and for PC.
For what I've searched, you will need to load the ps2dev9.irx, ps2smap.irx and ps2ip.irx modules, (order matter! i think :) ).
I looked the ps2smap.irx code and looks like you need to pass the IP settings as its param, ex: "192.168.2.2 255.255.255.0 192.168.2.1". In another words: a string in this format: "IP MASK GATEWAY".
To use the accept and the other socket functions, you will need the ps2ip.irx (I think).
The ps2dev9.irx is needed in order to load ps2smap.irx.
Why don't you try to reset the IOP? This will unload any modules previously loaded by another programs(and, of course, lose conectivity with ps2link), then load your own modules. A good idea is to use the bin2c tool to convert the irx's to code and then use SifExecModuleBuffer() function to load them.
Good luck!
[edit]
I think you won't need to load the ps2ip.irx module!!
The tcpip sample don't load the ps2ip.irx, so I think the ps2ip.h EE functions aren't imported from the IOP functions.
I am starting a little program to send and receive messages/files for the PS2 and for PC.
For what I've searched, you will need to load the ps2dev9.irx, ps2smap.irx and ps2ip.irx modules, (order matter! i think :) ).
I looked the ps2smap.irx code and looks like you need to pass the IP settings as its param, ex: "192.168.2.2 255.255.255.0 192.168.2.1". In another words: a string in this format: "IP MASK GATEWAY".
To use the accept and the other socket functions, you will need the ps2ip.irx (I think).
The ps2dev9.irx is needed in order to load ps2smap.irx.
Why don't you try to reset the IOP? This will unload any modules previously loaded by another programs(and, of course, lose conectivity with ps2link), then load your own modules. A good idea is to use the bin2c tool to convert the irx's to code and then use SifExecModuleBuffer() function to load them.
Good luck!
[edit]
I think you won't need to load the ps2ip.irx module!!
The tcpip sample don't load the ps2ip.irx, so I think the ps2ip.h EE functions aren't imported from the IOP functions.