j2me client - c++ server connection
hi all,
there is this client code in j2me, it connects the tomcat server well and sends the number i input and gets some url adress from the server..
however, i have another server coded in C++ and i want my cellphone(j2me client) to connect to it and do the same -sending the number and getting the url-. the problem is it always sends the number i input, but it SOMETIMES gets the url address and 4 of 5 times say it does not get the url information.
it is so ridiculous to me that this works sometimes.. what could be the problem here sending info sometimes from c++ server to j2me client? and how can it be solved?
thanks..
You need to supply more info.
Are you using HTTP? I assume so seeing as this is the only protocol guaranteed to work on MIDP1.0
Have you used a network analyser to see exactly what occurs in the process?
Maybe you would be better off changing your C++ server app to a CGI program rather than writing your own web server, which is a nontrivial task.
I would personally use a network analyser and dump the session of Tomcat, dump the session of your custom HTTP server (if that's what it is), and compare them.
Mark
Are you using HTTP? I assume so seeing as this is the only protocol guaranteed to work on MIDP1.0
Have you used a network analyser to see exactly what occurs in the process?
Maybe you would be better off changing your C++ server app to a CGI program rather than writing your own web server, which is a nontrivial task.
I would personally use a network analyser and dump the session of Tomcat, dump the session of your custom HTTP server (if that's what it is), and compare them.
Mark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement