Jabber (Module)

In: ./jabber4r.rb
./jid.rb
./protocol.rb
./roster.rb
./session.rb
./vcard.rb

License: see LICENSE.txt

 Jabber4R - Jabber Instant Messaging Library for Ruby
 Copyright (C) 2002  Rich Kilmer <rich@infoether.com>

Constants

VERSION_MAJOR = 0
VERSION_MINOR = 6
RELEASE = 0
DEBUG = false
HEX = "0123456789abcdef"

Public Class methods

Generates a random id as a hex string

prefix:[String="Jabber4R_] The prefix for the random hex data
length:[Integer=16] The number of hex characters
return:[String] The random id

Generates a random hex string in the following format:

  JRR_01234567
return:[String] The resource id

Generates a random thread as a hex string in the following format:

  JRT_01234567890123456789
return:[String] The thread id

[Validate]