<streamhost/> element, normally appear as children of IqQueryBytestreams
Initialize a <streamhost/> element
jid |
|
host |
|
port |
|
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 93 def initialize(jid=nil, host=nil, port=nil) super() self.jid = jid self.host = host self.port = port end
Get the host address of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 114 def host attributes['host'] end
Set the host address of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 120 def host=(h) attributes['host'] = h end
Get the JID of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 102 def jid (a = attributes['jid']) ? JID.new(a) : nil end
Set the JID of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 108 def jid=(j) attributes['jid'] = (j ? j.to_s : nil) end
Get the port number of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 138 def port p = attributes['port'].to_i (p == 0 ? nil : p) end
Set the port number of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 145 def port=(p) attributes['port'] = p.to_s end
Generated with the Darkfish Rdoc Generator 2.