Module: Rex::Socket::Comm::Events
- Defined in:
- lib/rex/socket/comm.rb
Overview
This mixin provides stubs for event notification handlers that can be registered with a Comm factory to be called when various events occur, such as socket instantiation.
Instance Method Summary collapse
-
#on_before_socket_create(comm, param) ⇒ Object
This callback is notified when a socket is being created and is passed the parameters that will be used to create it.
-
#on_socket_created(comm, sock, param) ⇒ Object
This callback is notified when a new socket is created and the parameters that were used to create it.
Instance Method Details
#on_before_socket_create(comm, param) ⇒ Object
This callback is notified when a socket is being created and is passed the parameters that will be used to create it.
31 32 |
# File 'lib/rex/socket/comm.rb', line 31 def on_before_socket_create(comm, param) end |
#on_socket_created(comm, sock, param) ⇒ Object
This callback is notified when a new socket is created and the parameters that were used to create it. This provides the callback with a chance to extend or otherwise modify the socket before it's passed on to the actual requestor.
40 41 |
# File 'lib/rex/socket/comm.rb', line 40 def on_socket_created(comm, sock, param) end |