Module: Rex::IO::SocketAbstraction::MonitoredRSock

Defined in:
lib/rex/io/socket_abstraction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#close_requestedObject (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

Parameters:

  • value

    the value to set the attribute monitor_thread to.



129
130
131
# File 'lib/rex/io/socket_abstraction.rb', line 129

def monitor_thread=(value)
  @monitor_thread = value
end

Instance Method Details

#closeObject



118
119
120
121
122
# File 'lib/rex/io/socket_abstraction.rb', line 118

def close
  @close_requested = true
  @monitor_thread.join
  nil
end

#syscloseObject



124
125
126
# File 'lib/rex/io/socket_abstraction.rb', line 124

def sysclose
  self.class.instance_method(:close).bind(self).call
end