class Jabber::Bytestreams::IBBInitiator

Implementation of IBB at the initiator side

Attributes

block_size[RW]

You may set the block-size before open

Public Instance Methods

open() click to toggle source

Open the stream to the peer, waits for successful result

May throw ServerError

# File lib/xmpp4r/bytestreams/helper/ibb/initiator.rb, line 18
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