<streamhost/> element, normally appear as children of IqQueryBytestreams
Initialize a <streamhost/> element
Hostname or IP address
Port number
# 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
Get the zeroconf attribute of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 126 def zeroconf attributes['zeroconf'] end
Set the zeroconf attribute of the streamhost
# File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 132 def zeroconf=(s) attributes['zeroconf'] = s end