119 std::map<int, Socket *> sockets;
120 std::vector<Thread> threads;
121 volatile bool terminateThreads;
void eventReceived(struct epoll_event event)
Dispatch event to appropriate socket.
Definition: EPoll.cpp:98
int processCommand(std::string command, Session *session) override
Output the threads array to the console.
Definition: EPoll.cpp:114
Definition: Command.cpp:4
~EPoll()
Definition: EPoll.cpp:18
int getDescriptor()
Return the descriptor for the ePoll socket.
Definition: EPoll.cpp:110
bool unregisterSocket(Socket *socket)
Unregister a BMASocket from monitoring by BMAEPoll.
Definition: EPoll.cpp:85
bool isStopping()
Returns a true if the stop command has been requested.
Definition: EPoll.cpp:68
EPoll()
Definition: EPoll.cpp:9
bool registerSocket(Socket *socket)
Register a BMASocket for monitoring by BMAEPoll.
Definition: EPoll.cpp:72
int maxSockets
The maximum number of socket allowed.
Definition: EPoll.h:98
bool start(int numberOfThreads, int maxSockets)
Start the BMAEPoll processing.
Definition: EPoll.cpp:22
bool stop()
Stop and shut down the BMAEPoll processing.
Definition: EPoll.cpp:48