How to change ps2link tcpip driver version ?
Posted: Mon May 17, 2004 6:14 am
Hi, I just build up the tool chain, and get ee sample to compile, and launched it with ps2link (with Playstation 2 Independance exploit)
Now, I want to write an application wich uses ee tcpip api to send/recv data from a PC, the problem is I don't know when i recv data, and I want to be able to send data anytime.
So my first try was to create a thread wich call recv() in a loop and let the main thread call send(), but it seams that you can't do that, recv() wait for data and send wait recv finish or something like this.
So, I try a different method, checking if there is data to read before calling recv(), so I try to use select(), and here is where I get stuck. ps2link use an old version of ps2ips.irx without select command, if I load one of the latest version of this irx, it doesn't work, even send don't work anymore(always sending zero bytes), I have to use the irx given with ps2link.
I'm wondering if there is a way to either unload irx files ps2link is using and load new ones (wich i don't think is possible) or change the irx on the mc to the latest one without compiling naplink with ps2sdk ? (I don't know if the cvs version of ps2link can compile right now with ps2sdk)
If it's impossible, I could use naplink with the swap trick(or try to put it on mc), but I would prefer a ps2link solution. Another question, in case I will have to use naplink, do I need to load anything else than : ps2ip.irx, ps2smap.irx, ps2ips.irx to use ee tcpip api ?
Because last time I try to launch ee-echo with naplink it does'nt work.
If you have any idea please reply, even if it s just a hint, or a way to explore :)
Now, I want to write an application wich uses ee tcpip api to send/recv data from a PC, the problem is I don't know when i recv data, and I want to be able to send data anytime.
So my first try was to create a thread wich call recv() in a loop and let the main thread call send(), but it seams that you can't do that, recv() wait for data and send wait recv finish or something like this.
So, I try a different method, checking if there is data to read before calling recv(), so I try to use select(), and here is where I get stuck. ps2link use an old version of ps2ips.irx without select command, if I load one of the latest version of this irx, it doesn't work, even send don't work anymore(always sending zero bytes), I have to use the irx given with ps2link.
I'm wondering if there is a way to either unload irx files ps2link is using and load new ones (wich i don't think is possible) or change the irx on the mc to the latest one without compiling naplink with ps2sdk ? (I don't know if the cvs version of ps2link can compile right now with ps2sdk)
If it's impossible, I could use naplink with the swap trick(or try to put it on mc), but I would prefer a ps2link solution. Another question, in case I will have to use naplink, do I need to load anything else than : ps2ip.irx, ps2smap.irx, ps2ips.irx to use ee tcpip api ?
Because last time I try to launch ee-echo with naplink it does'nt work.
If you have any idea please reply, even if it s just a hint, or a way to explore :)