Class: Arachni::RPC::Server::Base
- Inherits:
-
Arachni::RPC::Server
- Object
- Arachni::RPC::Server
- Arachni::RPC::Server::Base
- Defined in:
- lib/arachni/rpc/server/base.rb
Overview
RPC server class
Instance Method Summary collapse
-
#initialize(options, token = nil) ⇒ Base
constructor
A new instance of Base.
- #ready? ⇒ Boolean
- #start ⇒ Object
Constructor Details
#initialize(options, token = nil) ⇒ Base
Returns a new instance of Base.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/arachni/rpc/server/base.rb', line 34 def initialize( , token = nil ) if .is_a?( Hash ) = = OpenStruct.new .rpc = OpenStruct.new( ) end super( serializer: Serializer, host: .rpc.server_address, port: .rpc.server_port, socket: .rpc.server_socket, token: token, ssl_ca: .rpc.ssl_ca, ssl_pkey: .rpc.server_ssl_private_key, ssl_cert: .rpc.server_ssl_certificate ) end |
Instance Method Details
#ready? ⇒ Boolean
58 59 60 |
# File 'lib/arachni/rpc/server/base.rb', line 58 def ready? @ready ||= false end |
#start ⇒ Object
53 54 55 56 |
# File 'lib/arachni/rpc/server/base.rb', line 53 def start super @ready = true end |