Subsequent calls just block until the timeout? - Dan
On Thu, Nov 12, 2009 at 3:52 PM, Pierre <pierredur...@gmail.com> wrote: > I receive only the first byte of my udp packet... > > On Nov 12, 8:18 pm, Dan Sherman <impact...@gmail.com> 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 12, 2009 at 2:16 PM, Pierre <pierredur...@gmail.com> 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]; > > > DatagramPacket packetIn = new DatagramPacket(array,500); > > > this.socket.receive(packetIn); > > > System.out.println("packet length " + packetIn.getLength()); > > > > > Packet length is ALWAYS "1", even if i send larger packets ! > > > I don't understand why ... > > > > > When i use Wireshark, i see "normal" packets. > > > > > Is it a bug ? > > > This code works on Windows. > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com> > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en