Module: Caldecott::Client
- Defined in:
- lib/caldecott-client/client.rb,
lib/caldecott-client/version.rb,
lib/caldecott-client/tunnel/tunnel.rb,
lib/caldecott-client/tunnel/http_tunnel.rb
Defined Under Namespace
Classes: CaldecottClient, HttpTunnel, Tunnel
Constant Summary collapse
- BUFFER_SIZE =
1Mb
1024 * 1024
- SOCKET_TIMEOUT =
30s
30000
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.start(options) ⇒ Object
This is how it’s currently used by VMC: Caldecott::Client.start(
:local_port => local_port,
:tun_url => tunnel_url,
:dst_host => conn_info['hostname'],
:dst_port => conn_info['port'],
:log_file => STDOUT,
:log_level => ENV["VMC_TUNNEL_DEBUG"] || "ERROR",
:auth_token => auth,
:quiet => true
)
44 45 46 47 |
# File 'lib/caldecott-client/client.rb', line 44 def self.start() @client = CaldecottClient.new() @client.start end |
.stop ⇒ Object
49 50 51 |
# File 'lib/caldecott-client/client.rb', line 49 def self.stop @client.close if @client end |