Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java Micro Edition and the fly likes Data Transfer with Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Data Transfer with Security" Watch "Data Transfer with Security" New topic

Data Transfer with Security

Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Hi all,
In the most applications developer by you, what is more used? HTTP or Socket?
I know HTTP is slower than Socket.
When you use Socket, you do a specific protocol for each application?
Best Regards

Michael Yuan
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
First, you can use any arbitary binary protocol over HTTP. This is not limited to sockets.
Second, in many wireless networks, there is no native support for TCP/IP. Sockets are sometimes emulated over HTTP. That makes those sockets slower than HTTP.
Third, HTTP is the only protocol mandated by MIDP v1.0. So, if you want your app to be cross-platform. It is safer to use HTTP.

Seam Framework:
Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Thanks by response Michael, your explanation was very important.
Best Regards.
I agree. Here's the link:
subject: Data Transfer with Security
jQuery in Action, 3rd edition