Jump to content

TCP transmission strangeness


Recommended Posts



I'm writing an FTP server for the DS. While everything basically works, I've noticed a few strange things in the process.


One, the data connection is blocking both for sending and receiving data; still, I get EAGAINs, which shouldn't happen for blocking sockets according to the manpage.


Two, I'm getting MANY more EAGAINs on the DS when sending than when receiving (read: at the order of about 50,000 EAGAINs for one proper send). This reduces the sending speed greatly. I'm seeing about 30kbps for receiving and about




Handling the data connection (i.e. sending and receiving) is done very simple in a tight loop, and the buffer size for sending and receiving is 1024 bytes.


Any help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...