Method: Rex::Post::Meterpreter::Stream#initialize

Defined in:
lib/rex/post/meterpreter/channels/stream.rb

#initialize(client, cid, type, flags) ⇒ Stream

Passes the initialization information up to the base class



38
39
40
41
42
43
44
45
# File 'lib/rex/post/meterpreter/channels/stream.rb', line 38

def initialize(client, cid, type, flags)
  # sf: initialize_abstraction() before super() as we can get a scenario where dio_write_handler() is called
  # with data to write to the rsock but rsock has not yet been initialized. This happens if the channel
  # is registered (client.add_channel(self) in Channel.initialize) to a session and a 'core_channel_write'
  # request comes in before we have called self.initialize_abstraction()
  initialize_abstraction
  super(client, cid, type, flags)
end