Sha256: 1929b2f87fc63a2003fb57b011d581bab5d7e5c04a986a8bbe3c06bf33ff6ef7

Contents?: true

Size: 1001 Bytes

Versions: 5

Compression:

Stored size: 1001 Bytes

Contents

=begin
                  Arachni
  Copyright (c) 2010-2012 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>

  This is free software; you can copy and distribute and modify
  this program under the term of the GPL v2.0 License
  (See LICENSE file for details)

=end

require 'arachni/rpc/em'

module Arachni
module RPC
class Server

#
# RPC server class
#
# @author: Tasos "Zapotek" Laskos
#                                      <tasos.laskos@gmail.com>
#                                      <zapotek@segfault.gr>
# @version: 0.1
#
class Base < ::Arachni::RPC::EM::Server

    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

    def start
        super
        @ready = true
    end

    def ready?
        @ready ||= false
    end

end

end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.4.0.4 lib/arachni/rpc/server/base.rb
arachni-0.4.0.3 lib/arachni/rpc/server/base.rb
arachni-0.4.0.2 lib/arachni/rpc/server/base.rb
arachni-0.4.0.1 lib/arachni/rpc/server/base.rb
arachni-0.4 lib/arachni/rpc/server/base.rb