| Module | Rex::IO::StreamServer |
| In: |
lib/rex/io/stream_server.rb
|
This mixin provides the framework and interface for implementing a streaming server that can listen for and accept stream client connections. Stream servers extend this class and are required to implement the following methods:
accept fd
| on_client_close_proc | [RW] | This callback procedure can be set and will be called when a client disconnects from the server. |
| on_client_connect_proc | [RW] | This callback procedure can be set and will be called when new clients connect. |
| on_client_data_proc | [RW] | This callback procedure can be set and will be called when clients have data to be processed. |
This method monitors client connections for data and calls the on_client_data routine when new data arrives.
This method monitors the listener socket for new connections and calls the on_client_connect callback routine.