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
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

Returns:

  • (Boolean)


49
50
51
# File 'lib/arachni/rpc/server/base.rb', line 49

def ready?
    @ready ||= false
end

#startObject



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

def start
    super
    @ready = true
end