So I tried to test the network transfer with an easier program. I used ee-echo example. The normal echo function is working, because for receiving and sending the same buffer seems to be used.
When I change the program to send a different string, it is not working anymore and sends still the echo.
I attached the changed code part of echo.c:
Code: Select all
#include <string.h>
int HandleClient( int cs )
{
int rcvSize,sntSize;
const char answer[] = "Hello world!!!";
fd_set rd_set;
rcvSize = recv( cs, buffer, 100, 0);
if ( rcvSize <= 0 )
{
printf( "PS2ECHO: recv returned %i\n", rcvSize );
return -1;
}
sntSize = send( cs, answer, strlen(answer), 0 );
return 0;
}
There is a special syscall used for transfering the aligned part of the data from EE to IOP, which seems not to work (file iop/tcpip/tcpips/src/ps2ips.c: SifRpcGetOtherData()). Did somebody know why this is not working?