Method: LXC::Extra::ProxyServerSide#initialize
- Defined in:
- lib/lxc/extra/proxy_server_side.rb
#initialize(channel, &server_connector) ⇒ ProxyServerSide
Create a new ProxyServerSide.
Arguments
channel: Channel to send/receive connections from the other side.
- &server_connector
-
block that will be called (with no arguments) when the server opens a new connection, to create a new connection to the server. Must return a socket.
35 36 37 38 |
# File 'lib/lxc/extra/proxy_server_side.rb', line 35 def initialize(channel, &server_connector) @channel = channel @server_connector = server_connector end |