// comm_driver.h #ifndef HAVE_COMM_DRIVER_H #define HAVE_COMM_DRIVER_H #include "common/config.h" #include "common/string.h" #include "socket.h" #include "comm_client.h" class CommDriver : public Socket { public: CommDriver(); ~CommDriver(); void new_connection(); void shutdown_connection(const INT fd); const INT get_number_of_connections() { return commlist.size(); } CommClient *get_comm_client_ptr(const INT index); private: std::vector commlist; }; #endif // HAVE_COMM_DRIVER_H