XMPP4RXMPP/Jabber的Ruby类库
XMPP4R是一个XMPP/Jabber的Ruby类库。它的目标是提供开发Jabber相关应用程序或者Ruby脚本的完整框架。
安装方法:gem install xmpp4r
示例代码:
# Send a message to a friend, asking for authorization if necessary:
im = Jabber::Simple.new("user@example.com", "password")
im.deliver("friend@example.com", "Hey there friend!")
# Get received messages and print them out to the console:
im.received_messages { |msg| puts msg.body if msg.type == :chat }
# Send an authorization request to a user:
im.add("friend@example.com")
# Get presence updates from your friends, and print them out to the console:
# (admittedly, this one needs some work)
im.presence_updates { |update|
from = update[0].jid.strip.to_s
status = update[2].status
presence = update[2].show
puts "#{from} went #{presence}: #{status}"
end
# Remove a user from your contact list:
im.remove("unfriendly@example.com")
# See the Jabber::Simple documentation for more information.
评论
glooxC++ Jabber 接口库
gloox是一个C++的类库,用以实现可移植的Jabber/XMPP协议。gloox完全兼容XMPPRFCs,支持所有的XMPP特性,包括SRVlookups,TLS,SASL,rostermanag
glooxC++ Jabber 接口库
0
JComponentPackSwing的GUI类库
JComponentPack是一个基于JavaSwing的GUI类库(非开源),一系列可视化的JavaBeans集合,它基于Swing的MVC架构,是100%的纯Java类库,它包括20多个Swing
JComponentPackSwing的GUI类库
0
YarfrawJava的RSS类库
YARFRAW-YetAnotherRSSFeedReaderAndWriterAPIYarfraw是一个开源的用来操作RSS数据的Java类库。示例代码:FeedWriterwriter=newFe
YarfrawJava的RSS类库
0
DDMSenceDDMS 的 Java 类库
DDMSence(读音"dee-dee-em-Essence")是一个支持DoD元数据发掘规范DDMS的Java类库,使用XOM和Xerces的JavaXML解析器来处理。DDMSence可将DDMS
DDMSenceDDMS 的 Java 类库
0