I'm developing an application for Nokia9500 communicator. Recently I've tested Wi-Fi connection speed by connecting to the server (via J2PP Socket), writing 20000 bytes and receiving the echo. I sent this request several times to exclude class loading times from my calculations. It took 743 milliseconds on average per packet. That did really surprise me, as the Pocket PC managed to perform the same request in 30 milliseconds. I used the same code in both cases, here it is:
byte data = new byte;
Socket socket = new Socket(InetAddress.getByName("192.168.xxx.xxx"), 6789);
InputStream is = socket.getInputStream();
OutputStream os = socket.getOutputStream();
Am I doing something wrong or is Nokia 9500 really that slow in Wi-Fi data transfers?