Class Jabber::Bytestreams::StreamHost
In: lib/xmpp4r/bytestreams/iq/bytestreams.rb
Parent: REXML::Element
XMLStanza Message Presence Iq REXML::Element X IqQuery Error StreamHost IqSiFileRange IqSiFile StreamHostUsed IqSi XRosterItem RosterItem IqFeature XMUCUserItem XMUCUserInvite Feature Identity Item XDataField XDataReported XDataTitle XDataInstructions IqVcard Singleton IdGenerator Connection Client Component Comparable JID RuntimeError ErrorException AuthenticationFailure SOCKS5Error Stream SOCKS5Bytestreams SOCKS5BytestreamsTarget SOCKS5BytestreamsInitiator SOCKS5BytestreamsServerStreamHost TCPSocket SOCKS5Socket IqQuery IqQueryBytestreams IqQueryVersion IqQueryRoster IqQueryDiscoItems IqQueryDiscoInfo IBB IBBTarget IBBInitiator Responder SimpleResponder X XRoster XMUCUser XMUC XDelay XData MUCClient SimpleMUCClient Base DigestMD5 Plain FileSource StreamParser SOCKS5BytestreamsPeer SOCKS5BytestreamsServer IBBQueueItem Helper MUCBrowser Helper Helper lib/xmpp4r/authenticationfailure.rb lib/xmpp4r/idgenerator.rb lib/xmpp4r/connection.rb lib/xmpp4r/iq.rb lib/xmpp4r/jid.rb lib/xmpp4r/xmlstanza.rb lib/xmpp4r/errorexception.rb lib/xmpp4r/stream.rb lib/xmpp4r/client.rb lib/xmpp4r/streamparser.rb lib/xmpp4r/x.rb lib/xmpp4r/error.rb lib/xmpp4r/component.rb lib/xmpp4r/query.rb lib/xmpp4r/message.rb lib/xmpp4r/presence.rb lib/xmpp4r/bytestreams/helper/ibb/initiator.rb lib/xmpp4r/bytestreams/iq/si.rb lib/xmpp4r/bytestreams/iq/bytestreams.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb lib/xmpp4r/bytestreams/helper/ibb/base.rb lib/xmpp4r/bytestreams/helper/ibb/target.rb Bytestreams lib/xmpp4r/version/iq/version.rb lib/xmpp4r/version/helper/responder.rb lib/xmpp4r/version/helper/simpleresponder.rb Version lib/xmpp4r/roster/helper/roster.rb lib/xmpp4r/roster/iq/roster.rb lib/xmpp4r/roster/x/roster.rb Roster lib/xmpp4r/feature_negotiation/iq/feature.rb FeatureNegotiation lib/xmpp4r/muc/x/muc.rb lib/xmpp4r/muc/helper/mucclient.rb lib/xmpp4r/muc/x/mucuseritem.rb lib/xmpp4r/muc/helper/mucbrowser.rb lib/xmpp4r/muc/x/mucuserinvite.rb lib/xmpp4r/muc/helper/simplemucclient.rb MUC lib/xmpp4r/sasl.rb SASL lib/xmpp4r/delay/x/delay.rb Delay lib/xmpp4r/bytestreams/helper/filetransfer.rb TransferSource FileTransfer lib/xmpp4r/discovery/iq/discoinfo.rb lib/xmpp4r/discovery/iq/discoitems.rb Discovery lib/xmpp4r/dataforms/x/data.rb Dataforms lib/xmpp4r/vcard/helper/vcard.rb lib/xmpp4r/vcard/iq/vcard.rb Vcard Jabber Module: Jabber

<streamhost/> element, normally appear as children of IqQueryBytestreams

Methods

host   host=   jid   jid=   new   port   port=   zeroconf   zeroconf=  

Public Class methods

Initialize a <streamhost/> element

jid:[JID]
host:[String] Hostname or IP address
port:[Fixnum] Port number

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 101
101:       def initialize(jid=nil, host=nil, port=nil)
102:         super('streamhost')
103:         self.jid = jid
104:         self.host = host
105:         self.port = port
106:       end

Public Instance methods

Get the host address of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 122
122:       def host
123:         attributes['host']
124:       end

Set the host address of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 128
128:       def host=(h)
129:         attributes['host'] = h
130:       end

Get the JID of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 110
110:       def jid
111:         (a = attributes['jid']) ? JID.new(a) : nil
112:       end

Set the JID of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 116
116:       def jid=(j)
117:         attributes['jid'] = (j ? j.to_s : nil)
118:       end

Get the port number of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 146
146:       def port
147:         p = attributes['port'].to_i
148:         (p == 0 ? nil : p)
149:       end

Set the port number of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 153
153:       def port=(p)
154:         attributes['port'] = p.to_s
155:       end

Get the zeroconf attribute of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 134
134:       def zeroconf
135:         attributes['zeroconf']
136:       end

Set the zeroconf attribute of the streamhost

[Source]

     # File lib/xmpp4r/bytestreams/iq/bytestreams.rb, line 140
140:       def zeroconf=(s)
141:         attributes['zeroconf'] = s
142:       end

[Validate]