title: TCP or UDP for Mobile messaging service?
body: <p>I am working on developing a mobile application using java for messaging services(P2P) I am still in the early stages, and searching about the best and most suitable protocol for such application. As I have found. socket programming is better than web services. as you know it doesn't need to add extra data (overhead) for the sent message so it will cost lower. </p>
  
  <p>Is there a third option other than sockets &amp; HTTP?</p>
  
  <p>Is socket is the choice what is the best to use TCP or UDP ?! </p>
  
  <p>The question is open for any other options not only the what is mentioned here 
  and thank you in advance</p>