views:

96

answers:

0

I seem to be having some trouble transmitting files to an android phone using multicast sockets. The files vary in size, but none are more than 1MB. The algorithm that I am using is structured to handle for lost packets (by asking for those packets again) and out of order packets --- but sometimes it just doesn't work on android. Sometimes I get messages up to 500KB just fine, other times a simple 10KB message doesn't make it.

From my testing it seems like there is a performance bottleneck (or something) where the packets (512 bytes a piece, TTL 20) don't queue very well on the socket. It's usually some random packet in the middle of the message that is "lost" -- but I think that has to do with queuing rather than loss since other machines on the wifi network (using the same algorithm) work fine.

Are there any known limitations with android multicast sockets? Are there any ways to help improve performance of the sockets?

Thanks in advance - all help is appreciated.

Dan (Cpudan80 on IRC)

Specs:

Android 2.2 (Nexus One), 802.11 b/g network (WPA2) with no internet access (no outside hops), no SIM card.