摘要
本文详细阐述了XMPP技术和Ejabberd服务器相关知识,并且运用这些知识,实现了即时通讯的黑名单功能。Ejabberd服务器是用Erlang语言实现的一个XMPP服务器,服务器与客户端是通过xml stream的形式进行通讯的,即通过对xml的解析,服务器端与客户端就可以相互通讯了。本文则通过在本地架构一个精简的XMPP Server,并通过Psi客户端实现了阻止黑名单列表里好友间的相互通讯,包括阻止黑名单里好友发送好友申请、普通的消息发送及出席状态的订阅等。
In this paper, I introduce the technology of XMPP and Ejabberd, in detail, and put the blacklist of instant messaging into practice. The Ejabberd sever is a XMPP sever which is realized by the language of erlang. The communication between the serverside and the client is XML stream, that's to say, through analyze to the XML stream, the server-side and client could communicate with each other. In this essay, I architectured a brief XMPP server in local, and though the PSI client technology, blocked the communication between the friends in the blacklist, include the application of the friends, message sending between the friends ,as well as subscribe the situation of the friends in the blacklist.
出处
《微计算机信息》
2010年第18期175-177,共3页
Control & Automation