Class: Msf::Aggregator::Service
- Inherits:
-
Object
- Object
- Msf::Aggregator::Service
- Defined in:
- lib/msf/aggregator.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#add_cable(type, host, port, certificate = nil) ⇒ Object
start a listening port maintained on the service connections are forwarded to any registered default TODO: may want to require a type here for future proof of api.
-
#available? ⇒ Boolean
return availability status of the service.
-
#available_addresses ⇒ Object
returns list of IP addressed available to the service TODO: consider also reporting “used” ports (may not be needed).
- #cables ⇒ Object
-
#obtain_session(payload, lhost, lport) ⇒ Object
sets forwarding for a specific session to promote that session for local use, obtained sessions are not reported in getSessions.
- #register_default(lhost, lport, payload_list) ⇒ Object
-
#release_session(payload) ⇒ Object
parks a session and makes it available in the getSessions.
- #remove_cable(host, port) ⇒ Object
-
#sessions ⇒ Object
returns map of sessions available from the service.
Instance Method Details
#add_cable(type, host, port, certificate = nil) ⇒ Object
start a listening port maintained on the service connections are forwarded to any registered default TODO: may want to require a type here for future proof of api
46 47 48 |
# File 'lib/msf/aggregator.rb', line 46 def add_cable(type, host, port, certificate = nil) # index for impl end |
#available? ⇒ Boolean
return availability status of the service
18 19 20 |
# File 'lib/msf/aggregator.rb', line 18 def available? # index for impl end |
#available_addresses ⇒ Object
returns list of IP addressed available to the service TODO: consider also reporting “used” ports (may not be needed)
60 61 62 |
# File 'lib/msf/aggregator.rb', line 60 def available_addresses # index for impl end |
#cables ⇒ Object
27 28 29 |
# File 'lib/msf/aggregator.rb', line 27 def cables # index for impl end |
#obtain_session(payload, lhost, lport) ⇒ Object
sets forwarding for a specific session to promote that session for local use, obtained sessions are not reported in getSessions
34 35 36 |
# File 'lib/msf/aggregator.rb', line 34 def obtain_session(payload, lhost, lport) # index for impl end |
#register_default(lhost, lport, payload_list) ⇒ Object
54 55 56 |
# File 'lib/msf/aggregator.rb', line 54 def register_default(lhost, lport, payload_list) # index for impl end |
#release_session(payload) ⇒ Object
parks a session and makes it available in the getSessions
39 40 41 |
# File 'lib/msf/aggregator.rb', line 39 def release_session(payload) # index for impl end |
#remove_cable(host, port) ⇒ Object
50 51 52 |
# File 'lib/msf/aggregator.rb', line 50 def remove_cable(host, port) # index for impl end |
#sessions ⇒ Object
returns map of sessions available from the service
23 24 25 |
# File 'lib/msf/aggregator.rb', line 23 def sessions # index for impl end |