| Class | Reactor |
| In: |
lib/network/reactor.rb
|
| Parent: | Object |
The Reactor class defines a representation of a multiplexer based on a non-blocking select() server.
The network design is based on the Mesh project NetworkService code which was translated almost directly from C++, warts and all, which in turn is based on Schmidt’s Acceptor/Connector/Reactor patterns which may be found at citeseer.ist.psu.edu/schmidt97acceptor.html for an idea of how all these classes are supposed to interelate.
| port | [R] | |
| service_filters | [R] | |
| service_io | [R] | |
| service_negotiation | [R] | |
| service_type | [R] |
Constructor for Reactor
Valid options are
:sga, :echo, :naws, :ttype, :zmp (negotiate default)
:binary
Valid options are
:filter - attach dummy filter
:debugfilter - attach debug filter (default)
:telnetfilter - attach telnet filter (default)
:colorfilter - attach color filter (default)
:terminalfilter - attach terminal filter
poll starts the Reactor running to process incoming connection, input and output requests. It also executes commands from input requests.
Start initializes the reactor and gets it ready to accept incoming connections.