Module: Rex::IO::SocketAbstraction::MonitoredRSock
- Defined in:
- lib/rex/io/socket_abstraction.rb
Instance Attribute Summary collapse
-
#close_requested ⇒ Object
readonly
Returns the value of attribute close_requested.
-
#monitor_thread ⇒ Object
writeonly
Sets the attribute monitor_thread.
Instance Method Summary collapse
Instance Attribute Details
#close_requested ⇒ Object (readonly)
Returns the value of attribute close_requested.
128 129 130 |
# File 'lib/rex/io/socket_abstraction.rb', line 128 def close_requested @close_requested end |
#monitor_thread=(value) ⇒ Object (writeonly)
Sets the attribute monitor_thread
129 130 131 |
# File 'lib/rex/io/socket_abstraction.rb', line 129 def monitor_thread=(value) @monitor_thread = value end |
Instance Method Details
#close ⇒ Object
118 119 120 121 122 |
# File 'lib/rex/io/socket_abstraction.rb', line 118 def close @close_requested = true @monitor_thread.join nil end |
#sysclose ⇒ Object
124 125 126 |
# File 'lib/rex/io/socket_abstraction.rb', line 124 def sysclose self.class.instance_method(:close).bind(self).call end |