Hi friends,
I'm developing socket base application..
in this application server(PC) & client (cellphone) included.
i'm writing source code for request from client to server as below...
Source Code:-
SocketConnection Socket= (SocketConnection) Connector.open("socket url", Connector.READ_WRITE, false);
Socket.setSocketOption(SocketConnection.SNDBUF, 65000);
Socket.setSocketOption(SocketConnection.RCVBUF, 65000);
Socket.setSocketOption(SocketConnection.KEEPALIVE, 1);
DataOutputStream DataOutputStream=Socket.openDataOutputStream();
DataInputStream DataInputStream=Socket.openDataInputStream();
DataOutputStream.writeInt(9);
as per above code i'm sending request to server from client .....
THIS CODE WORKING PROPERLY in EMULATOR but NOT WORKING ON REAL PHONE(actual devices) or RDA ....
please give suggestion or correct me if i'm wrong
Thanx & Regards,
Neel...

Reply With Quote




