XMPP4R XMPP/Jabber的Ruby类库

程序名称:XMPP4R

授权协议: 未知

操作系统: 跨平台

开发语言: Ruby

XMPP4R 介绍

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.

XMPP4R 官网

http://home.gna.org/xmpp4r/

相关编程语言

BlazeDS 是一个基于服务器的Java 远程控制(remoting...
OVal 是一个可扩展的Java对象数据验证框架,验证的规...
Volta 是一套开发工具,专为开发分布式、实时系统应...
OpenDDS 是一个开源的 C++ 实现的 对象管理组织 OMG...
JADE (Java Agent DEvelopment Framework) 是一个完...
FastMM ,在D2006和2007中已代替了原来的内存管理器。