Class: Arachni::RPC::Server::Base

Inherits:
EM::Server
  • Object
show all
Defined in:
lib/arachni/rpc/server/base.rb

Overview

RPC server class

Author:

Instance Method Summary collapse

Constructor Details

#initialize(opts, token = nil) ⇒ Base

Returns a new instance of Base.



30
31
32
33
34
35
36
37
38
39
# File 'lib/arachni/rpc/server/base.rb', line 30

def initialize( opts, token = nil )
    super(
        :host  => opts.rpc_address,
        :port  => opts.rpc_port,
        :token => token,
        :ssl_ca     => opts.ssl_ca,
        :ssl_pkey   => opts.ssl_pkey,
        :ssl_cert   => opts.ssl_cert
    )
end

Instance Method Details

#ready?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/arachni/rpc/server/base.rb', line 46

def ready?
    @ready ||= false
end

#startObject



41
42
43
44
# File 'lib/arachni/rpc/server/base.rb', line 41

def start
    super
    @ready = true
end