This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Data Transfer with Security  RSS feed

 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks by response Michael, your explanation was very important.
Best Regards.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!