1 #ifndef SCD_IN_CONNECTOR_H
2 #define SCD_IN_CONNECTOR_H
4 #include "scd_socket.h"
5 #include "scd_sock_poller.h"
6 #include "scd_simulator.h"
7 #include "scd_command_reader.h"
10 * Reads a command from a socket handled over by scd_init_listener
11 * and dispatches the connection to either the control or channel manager.
12 * This is used during the initialization phase.
14 class scd_in_connector : public scd_sock_ev_handler_if
19 * \param sim the simulator
20 * \param sock the socket of the connection to read the command from
22 scd_in_connector(scd_simulator &sim, scd_socket* sock);
27 * Indicates if this in_connector is still reading the incomming command.
28 * It can be deconstructed when this indicates false.
29 * \return true if this in_connector is still working
33 /* scd_sock_ev_handler_if */
34 void handle_sock_ev(sock_ev events);
35 const scd_socket& get_sock();
41 scd_command_reader _reader;