Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Cant receive UDP packet correctly

Cant receive UDP packet correctly

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Cant receive UDP packet correctly

Postby Pierre » Mon Nov 16, 2009 3:08 am

My app use UDP, and communicate with my PC.
It can send and receive UDP packets.

Here my code (udp reception) :
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.socket = new DatagramSocket(port);
  2.  
  3. byte[] array = new byte[500];
  4.  
  5. DatagramPacket packetIn = new DatagramPacket(array,500);
  6.  
  7. this.socket.receive(packetIn);
  8.  
  9. System.out.println("packet length " + packetIn.getLength());
  10.  
  11.  
Parsed in 0.012 seconds, using GeSHi 1.0.8.4


My problem : received packets are ALWAYS truncated !
The displayed length is ALWAYS "1" !

When i "spy" packets from my computer (with Wireshark) , they're "normal" (not truncated).

2nd problem : the platform
This bug happens on :
- My HTC Hero (Android 1.5)
- Android emulator 1.5-1.6

I've no problem on Android emulator 2.0 !

http://www.anddev.org/udp_receive_problem-t6886.html
Same problem ?

Please help me, this bug makes me crazy !
Pierre
Freshman
Freshman
 
Posts: 5
Joined: Mon Nov 16, 2009 2:54 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests