7 #include "TCPSession.h"
115 void resetSocket(
Socket *socket);
121 std::vector<Thread> threads;
122 volatile bool terminateThreads;
123 void enableSocket(
Socket *socket);
124 void disableSocket(
Socket *socket);
bool isStopping()
Returns a true if the stop command has been requested.
Definition: EPoll.cpp:65
bool start(int numberOfThreads, int maxSockets)
Start the BMAEPoll processing.
Definition: EPoll.cpp:19
Definition: TCPSession.h:24
bool unregisterSocket(Socket *socket)
Unregister a BMASocket from monitoring by BMAEPoll.
Definition: EPoll.cpp:74
bool stop()
Stop and shut down the BMAEPoll processing.
Definition: EPoll.cpp:45
int maxSockets
The maximum number of socket allowed.
Definition: EPoll.h:98
void eventReceived(struct epoll_event event)
Dispatch event to appropriate socket.
int getDescriptor()
Return the descriptor for the ePoll socket.
Definition: EPoll.cpp:79
~EPoll()
Definition: EPoll.cpp:17
EPoll()
Definition: EPoll.cpp:8
bool registerSocket(Socket *socket)
Register a BMASocket for monitoring by BMAEPoll.
Definition: EPoll.cpp:69
int processCommand(coreutils::ZString &request, TCPSession &session) override
Output the threads array to the console.
Definition: EPoll.cpp:83