module Rex::Services::LocalRelay::Stream
This module is used to extend streams such that they can be associated with a relay context and the other side of the stream.
Attributes
other_stream[RW]
relay[RW]
Public Instance Methods
on_other_data(data)
click to toggle source
This method is called when the other side has data that has been read in.
# File lib/rex/services/local_relay.rb, line 31 def on_other_data(data) if (relay.on_other_data_proc) relay.on_other_data_proc.call(relay, self, data) else put(data) end end