开发者

How does a chatting client update the presence status of friends in contacts list? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. 开发者_运维问答

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 8 years ago.

Improve this question

Does it use a special protocol for this? Is it a push based or polling service?


It depends on how it's implemented. If there is a central server managing the clients connected, you can

  1. use polling and have the client get the current status from the server
  2. use some sort of push protocol, but then the client would have to open its own TCP or UDP server port so the server application can initiate communication to the client

If there's no server, there are many papers and examples of peer-to-peer communication. In that case I'd assume that every client is a server as well, so it's kindof like 2) above.

AFAIK there's no "standard protocol" for chat applications, but there are some open implementations one could use (Jabber).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜