Method: Msf::RPC::JSON::DispatcherHelper#create_dispatcher
- Defined in:
- lib/msf/core/rpc/json/dispatcher_helper.rb
#create_dispatcher(version, framework) ⇒ Msf::RPC::JSON::Dispatcher
Create an RPC Dispatcher composed of an RpcCommand for the provided version.
22 23 24 25 26 27 28 |
# File 'lib/msf/core/rpc/json/dispatcher_helper.rb', line 22 def create_dispatcher(version, framework) command = RpcCommandFactory.create(version, framework) dispatcher = Dispatcher.new(framework) dispatcher.set_command(command) dispatcher end |