| Class | Jabber::Bytestreams::IBBInitiator |
| In: |
lib/xmpp4r/bytestreams/helper/ibb/initiator.rb
|
| Parent: | IBB |
| block_size | [RW] | You may set the block-size before open |
Open the stream to the peer, waits for successful result
May throw ServerError
# File lib/xmpp4r/bytestreams/helper/ibb/initiator.rb, line 18
18: def open
19: iq = Iq.new(:set, @peer_jid)
20: open = iq.add REXML::Element.new('open')
21: open.add_namespace IBB::NS_IBB
22: open.attributes['sid'] = @session_id
23: open.attributes['block-size'] = @block_size.to_s
24:
25: @stream.send_with_id(iq)
26:
27: activate
28: end