Any Nokia phone suppoer socket protocol?
On my Nokia S60 emulator and Nokia 6310 emulator
c = (StreamConnection) Connector.open("socket://"+url, Connector.READ_WRITE, true);
javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist socket://10.90.90.34:35000
The socket protocol is defined in the Symbian SDK, and it seems to be missing from J2ME. And reasonably, socket works for me on series 60 (i tried on 7650), while http works on both series 60 and series 40 (6610, 6800)..
One thing to be noted with sockets is that, the connection should be made with internet over gprs and not wap over gprs.
From any operator, you can acquire two configuration settings. Wap over GPRS, Internet over GPRS (in addition to others like CSD, MMS etc)... When your client prompts you for the access point, if you are using the socket connection, you would have to choose Internet over GPRS.
To reason it logically (my previous para was based from experience), as sockets need TCP, we need to use HTTP over TCP/IP, The other accespoint must be using WSP/WTP over WDP.
On series 60 phone, while HTTP worked on "WAP over GPRS accesspoint", Socket didnt.
On series 60 phone, HTTP and Socket both worked on "WAP over Internet accesspoint".
On series 40 phone, Socket never worked as the library doesnt support socket protocol.
WSP provides HTTP 1.1 functionality, as its a binary form of HTTP. WSP can go over datagram (WDP/UDP). This channel doesnt require TCP. Socket requires TCP.
I dont know the low level implementation of HTTPConnection you see in the MIDP Api, but my guess is that it is binary http.
Though I find my facts and logic appropriately leading to my reasoning, I am uncertain of some issues, and would appreciate the experts comments.