module Rex::Services::LocalRelay::StreamServer
This module is used to extend stream servers such that they can be associated with a relay context.
Attributes
relay[RW]
Public Instance Methods
on_local_connection(relay, lfd)
click to toggle source
This method is called when the stream server receives a local connection such that the remote half can be allocated. The return value of the callback should be a Stream
instance.
# File lib/rex/services/local_relay.rb, line 56 def on_local_connection(relay, lfd) if (relay.on_local_connection_proc) relay.on_local_connection_proc.call(relay, lfd) end end