Class: Jabber::Bytestreams::SOCKS5BytestreamsServerStreamHost

Inherits:
StreamHost show all
Defined in:
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, #each_elements, #first_element, #first_element_content, #first_element_text, #import, import, #replace_element_content, #replace_element_text, #typed_add

Constructor Details

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



131
132
133
134
# File '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/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb', line 130

def server
  @server
end