Hi
I am developing a client server app for probably a Nokia s60 device using serversocket connections. My code works on SE W950i emulator, it works on netbeans' default Sun emulator and it works on s40 emulator. But it does not work on s60 3rd ed fp1 emulator. Is there some known issue with serversocket or datastreams on the s60 emulator ?
thanks in advance.
E.G. Code
Server side...
server = new ServerSocket( 5000, MAX_CONNECTIONS );
...
client = server.accept();
...
input = new DataInputStream( client.getInputStream() );
output = new DataOutputStream( client.getOutputStream() );
// Hangs here
String s = input.readUTF();
client side...
sConn = (SocketConnection) Connector.open("socket://localhost:5000");
input = sConn.openDataInputStream();
output = sConn.openDataOutputStream();
....
// passes this without error
output.writeUTF("LoadRegDB");
The connection is accepted on the server but the datastream is not being read/passed between client and server for some reason.
any ideas ?

Reply With Quote

