Sha256: f9d7c26f5a8eeff447d78bb390927e3706b8a0e988147b3d28e24bed118a74d6
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
# =XMPP4R - XMPP Library for Ruby # License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option. # Website::http://xmpp4r.github.io module Jabber module Bytestreams ## # Implementation of IBB at the initiator side class IBBInitiator < IBB # You may set the block-size before open attr_accessor :block_size ## # Open the stream to the peer, # waits for successful result # # May throw ServerError def open iq = Iq.new(:set, @peer_jid) open = iq.add REXML::Element.new('open') open.add_namespace IBB::NS_IBB open.attributes['sid'] = @session_id open.attributes['block-size'] = @block_size.to_s @stream.send_with_id(iq) activate end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmpp4r-0.5.6 | lib/xmpp4r/bytestreams/helper/ibb/initiator.rb |