Class: Arachni::RPC::Server::Base
- Defined in:
- lib/arachni/rpc/server/base.rb
Overview
RPC server class
Instance Method Summary collapse
-
#initialize(opts, token = nil) ⇒ Base
constructor
A new instance of Base.
- #ready? ⇒ Boolean
- #start ⇒ Object
Constructor Details
#initialize(opts, token = nil) ⇒ Base
Returns a new instance of Base.
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/arachni/rpc/server/base.rb', line 30 def initialize( opts, token = nil ) super( serializer: Marshal, fallback_serializer: YAML, host: opts.rpc_address, port: opts.rpc_port, socket: opts.rpc_socket, token: token, ssl_ca: opts.ssl_ca, ssl_pkey: opts.ssl_pkey, ssl_cert: opts.ssl_cert ) end |
Instance Method Details
#ready? ⇒ Boolean
49 50 51 |
# File 'lib/arachni/rpc/server/base.rb', line 49 def ready? @ready ||= false end |
#start ⇒ Object
44 45 46 47 |
# File 'lib/arachni/rpc/server/base.rb', line 44 def start super @ready = true end |