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 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.



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

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.



128
129
130
# File 'lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb', line 128

def server
  @server
end