Module: Plug::Proxy

Includes:
Base
Defined in:
lib/rbkb/plug/proxy.rb

Instance Attribute Summary collapse

Attributes included from Base

#kind, #no_stop_on_unbind, #peers, #tls, #tls_opts, #transport

Instance Method Summary collapse

Methods included from Base

#connection_completed, #name, #plug_peer, #plug_receive, #post_init, #receive_data, #say, #unbind

Instance Attribute Details

#targetObject

Returns the value of attribute target.



8
9
10
# File 'lib/rbkb/plug/proxy.rb', line 8

def target
  @target
end

Instance Method Details

#initialize(transport, target) ⇒ Object



10
11
12
13
14
# File 'lib/rbkb/plug/proxy.rb', line 10

def initialize(transport, target)
  @transport = transport
  @peers = ProxyPeerList.new(self)
  @kind = :proxy
end