Class: Msf::Ui::Web::Comm::SessionChannel
- Defined in:
- lib/msf/ui/web/comm.rb
Instance Attribute Summary
Attributes inherited from Channel
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(session_id, pipe) ⇒ SessionChannel
constructor
A new instance of SessionChannel.
- #read ⇒ Object
- #write_input(msg) ⇒ Object
Constructor Details
#initialize(session_id, pipe) ⇒ SessionChannel
Returns a new instance of SessionChannel.
21 22 23 24 25 26 27 28 |
# File 'lib/msf/ui/web/comm.rb', line 21 def initialize(session_id, pipe) super() @sid = session_id @pipe = pipe @pipe.create_subscriber(channel.id) end |
Instance Method Details
#close ⇒ Object
30 31 32 |
# File 'lib/msf/ui/web/comm.rb', line 30 def close @pipe.remove_subscriber(channel.id) end |
#read ⇒ Object
38 39 40 |
# File 'lib/msf/ui/web/comm.rb', line 38 def read @pipe.read_subscriber(channel.id) end |
#write_input(msg) ⇒ Object
34 35 36 |
# File 'lib/msf/ui/web/comm.rb', line 34 def write_input(msg) @pipe.write_input(msg) end |