[android-developers] Re: Can't receive UDP packets correctly

2009-11-12 Thread Pierre
I receive only the first byte of my udp packet... On Nov 12, 8:18 pm, Dan Sherman wrote: > We've had issues with UDP packets coming in off the socket non-reassembled. > > See what happens with multiple reads, see if you get back the expected > packet length in total... > > - Dan > > On Thu, Nov 1

[android-developers] Re: Can't receive UDP packets correctly

2009-11-12 Thread Pierre
each time i call receive(), i receive the first byte of the received packet On Nov 12, 10:14 pm, Dan Sherman wrote: > Subsequent calls just block until the timeout? > > - Dan > > On Thu, Nov 12, 2009 at 3:52 PM, Pierre wrote: > > I receive only the first byte of my udp packet... > > > On Nov 12,

[android-developers] Re: Can't receive UDP packets correctly

2009-11-13 Thread Pierre
Do you know if it's a bug ? Is it possible to receive UDP packet on android ? Is there any example ? On 12 nov, 22:27, Pierre wrote: > each time i call receive(), i receive the first byte of the received > packet > > On Nov 12, 10:14 pm, Dan Sherman wrote: > > > Subsequent calls just block unti

[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
No problem on the Android 2.0 emulator... I'm testing on 1.5 emulator... On 14 nov, 01:43, Pierre wrote: > Do you know if it's a bug ? > > Is it possible to receive UDP packet on android ? > Is there any example ? > > On 12 nov, 22:27, Pierre wrote: > > > each time i call receive(), i receive th

[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
Please, tell me i'm wrong : It looks that received packet are truncated after "n" bytes. "n" is the size of the first received packet. Seriously, this bug make me mad ! It only happens on MY phone ! On 14 nov, 13:59, Pierre wrote: > No problem on the Android 2.0 emulator... > I'm testing on 1.5

[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
I can reproduce this bug in the Android 1.5 emulator ! On 14 nov, 15:26, Pierre wrote: > Please, tell me i'm wrong : > > It looks that received packet are truncated after "n" bytes. > "n" is the size of the first received packet. > > Seriously, this bug make me mad ! > It only happens on MY phone

[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
Ok, to sumarize : My program receive UDP packets. On my HTC Hero (Android 1.5) and on emulator 1.5-1.6, i can't receive UDP packets correctly. They are truncated after the first byte (i receive only 1 byte packets). No problem in the Android 2.0 emulator On 14 nov, 15:57, Pierre wrote: > I can r

[android-developers] Re: Can't receive UDP packets correctly

2009-11-15 Thread Chopcsu
Does byte[] array actually only have 1 byte in it? Could be that the getLength call is just incorrect. On Nov 13, 6:16 am, Pierre wrote: > I use Android 1.5 on HTC Hero > > My code (udp server on my phone) : > > this.socket = new DatagramSocket(port); > byte[] array = new byte[500]; > DatagramP

[android-developers] Re: Can't receive UDP packets correctly

2009-11-15 Thread Pierre
byte[] array = new byte[500]; ? On Nov 16, 7:37 am, Chopcsu wrote: > Does byte[] array actually only have 1 byte in it? > > Could be that the getLength call is just incorrect. > > On Nov 13, 6:16 am, Pierre wrote: > > > I use Android 1.5 on HTC Hero > > > My code (udp server on my phone) : > > >

Re: [android-developers] Re: Can't receive UDP packets correctly

2009-11-12 Thread Dan Sherman
Subsequent calls just block until the timeout? - Dan On Thu, Nov 12, 2009 at 3:52 PM, Pierre wrote: > I receive only the first byte of my udp packet... > > On Nov 12, 8:18 pm, Dan Sherman wrote: > > We've had issues with UDP packets coming in off the socket > non-reassembled. > > > > See what