Class: Jabber::Bytestreams::SOCKS5BytestreamsServerStreamHost

Inherits:
StreamHost show all
Defined in:
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb

Overview

A subclass of StreamHost which possesses a server attribute, to let SOCKS5BytestreamsInitiator know this is the local SOCKS5BytestreamsServer

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from StreamHost

#host, #host=, #jid, #jid=, #port, #port=, #zeroconf, #zeroconf=

Methods inherited from XMPPElement

class_for_name_xmlns, #clone, force_xmlns, force_xmlns?, import, name_xmlns, name_xmlns_for_class, #parent=, #set_xml_lang, #typed_add, #xml_lang, #xml_lang=

Methods inherited from REXML::Element

#==, #delete_elements, #first_element, #first_element_text, #import, import, #replace_element_text, #typed_add

Constructor Details

#initialize(server, jid = nil, host = nil, port = nil) ⇒ SOCKS5BytestreamsServerStreamHost

Returns a new instance of SOCKS5BytestreamsServerStreamHost.



131
132
133
134
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb', line 131

def initialize(server, jid=nil, host=nil, port=nil)
  super(jid, host, port)
  @server = server
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



130
131
132
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb', line 130

def server
  @server
end