RT, such as a photo sharing application, is used by HTTP or SOCKET? Can say in detail what is best. Thank you.
<-! Baidu Button BEGIN -> more Share to: <-! Baidu Button END ->
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) -> Reply: http, socket is not agreement, is a network programming interface, can be achieved with a socket http, and a lot of look book.
Reply:
Novice learning, for applications such as photo sharing APP, the possibility of technical guidance on the client and server fetched a little bit? Reply: Server-side interfaces available for download, app launched http request, the need to show the picture to download to your phone Reply:
Weak weak to ask, that for the Android APP, http is well supported in C / S mode? Reply: Android certainly no problem with http Reply: Done before a small example, upload photos, view the server-side photos! ! ! , Is to use the http Reply: No problem with http Reply: Whatever you want, socket with http to see what you think, and if we consider real-time, such as chat software, a message to be received by the other party immediately, then use socket, so will consumption, http it is not real-time, the need to maintain a heartbeat connection, consumption flow, but now have wifi, the traffic will not be so precious Reply:
Are you talking about? http is an application layer protocol, maintaining hair heartbeat ah Reply:
Live chat software has done all know, in fact, between the client with the server, we must maintain a long connection, socket also need heartbeat, or the server can not determine whether the client is dropped, and http, there is a message to your friends, you must with a heartbeat to get, real-time server can not push, if you use XMPP, MQTT and other agreements that the other said, as to why a heartbeat, you're still more to learn about it, such as NAT mechanism, not barking in this Reply: I also do mobile client development, looked at the needs of online information, say the words with real-time SOCKET socket is TCP / IP communications, and can be used on C / S or B / S mode Reply:
Whatever you want, socket with http to see what you think, and if we consider real-time, such as chat software, a message to be received by the other party immediately, then use socket, so will consumption, http it is not real-time, the need to maintain a heartbeat connection, consumption flow, but now have wifi, the traffic will not be so precious
Are you talking about? http is an application layer protocol, maintaining hair heartbeat ah
Live chat software has done all know, in fact, between the client with the server, we must maintain a long connection, socket also need heartbeat, or the server can not determine whether the client is dropped, and http, there is a message to your friends, you must with a heartbeat to get, real-time server can not push, if you use XMPP, MQTT and other agreements that the other said, as to why a heartbeat, you're still more to learn about it, such as NAT mechanisms, not in this barking
< / fieldset>
socket-based TCP / IP communication interface, http is an application layer protocol. Landlord asked by http or socket, the concept is clearly mixed, some applications do not need to leave the heart, said socket communication interfaces and protocols together it can, socket can not also implement other protocols?
No comments:
Post a Comment