#136706 - c99koder - Fri Aug 03, 2007 11:45 pm
Hello,
I am using DSWifi w/ the sgIP stack to send/receive files on the DS. Receiving is fine, but I'm having problem sending. It seems like when I call send() it interrupts the previous send() if it hadn't finished transmitting, and I end up losing data.
I've tried reducing the size of the chunks I pass to send() and adding a few swiWaitForVBlank() calls in between and it seems to help a little, but I do still occasionally lose data.
Is there a reliable way to know when sgIP has finished sending the previous chunk so I can send the next? I haven't put the socket into non-blocking mode, so send() is supposed to be block until it's finished anyway.
Thanks!
I am using DSWifi w/ the sgIP stack to send/receive files on the DS. Receiving is fine, but I'm having problem sending. It seems like when I call send() it interrupts the previous send() if it hadn't finished transmitting, and I end up losing data.
I've tried reducing the size of the chunks I pass to send() and adding a few swiWaitForVBlank() calls in between and it seems to help a little, but I do still occasionally lose data.
Is there a reliable way to know when sgIP has finished sending the previous chunk so I can send the next? I haven't put the socket into non-blocking mode, so send() is supposed to be block until it's finished anyway.
Thanks!