Hi! I'm writing an application that lets you to control Winamp from the DS. I'm using NON-BLOCKING TCP sockets to send the information, but some rare thing happens When I send data very quickly (for example, if you press Up quickly, the DS sends a lot of "volume up" messages), my server application (made on Visual Basic) receives a long message with all the quickly-sent messages: "volume upvolume upvolume up". Is this normal? Is there any way to avoid this? I want to receive a lot of "volume up" messages, not a long message, because the sending from DS takes place when I stop sending messages. Thanks you in advance, and I'm sorry because I'm Spanish and my English is not very good haha See ya!! PD: Here is my code (I'm using PAlib and DSWifi from CVS 19-7-2006): int main(int argc, char ** argv)
{
int socket;
PA_Init(); // Initializes PA_Lib
PA_InitVBL(); // Initializes a standard VBL
PA_InitText(1, 0);
PA_InitWifi();
PA_OutputText(1, 0, 0, "Connecting...");
if(PA_ConnectWifiWFC()){
PA_OutputText(1, 0, 1, "Connected");
}else{
PA_OutputText(1, 0, 1, "Cannot connect");
while (1)
{
PA_WaitForVBL();
}
}
PA_InitSocket(&socket,"192.168.0.4",32123,PA_NONBLOCKING_TCP);
// Infinite loop to keep the program running
while (1)
{
if(Pad.Held.Up) send(socket, "volume up", 9, 0);
PA_WaitForVBL();
}
return 0;
} // End of main()