7 #include "TCPSession.h" 
  104       void eventReceived(
struct epoll_event event, pid_t threadId); 
 
  115       void resetSocket(
Socket *socket);
 
  121       std::map<int, Socket *> sockets; 
 
  122       std::vector<Thread> threads; 
 
  123       volatile bool terminateThreads; 
 
  125       void enableSocket(
Socket *socket);
 
  126       void disableSocket(
Socket *socket);
 
  
bool isStopping()
Returns a true if the stop command has been requested.
Definition: EPoll.cpp:67
bool start(int numberOfThreads, int maxSockets)
Start the BMAEPoll processing.
Definition: EPoll.cpp:21
Definition: TCPSession.h:23
bool unregisterSocket(Socket *socket)
Unregister a BMASocket from monitoring by BMAEPoll.
Definition: EPoll.cpp:83
bool stop()
Stop and shut down the BMAEPoll processing.
Definition: EPoll.cpp:47
void eventReceived(struct epoll_event event, pid_t threadId)
Dispatch event to appropriate socket.
Definition: EPoll.cpp:95
int maxSockets
The maximum number of socket allowed.
Definition: EPoll.h:98
int getDescriptor()
Return the descriptor for the ePoll socket.
Definition: EPoll.cpp:107
int processCommand(std::string command, TCPSession *session, std::stringstream &data) override
Output the threads array to the console.
Definition: EPoll.cpp:111
~EPoll()
Definition: EPoll.cpp:17
EPoll()
Definition: EPoll.cpp:8
bool registerSocket(Socket *socket)
Register a BMASocket for monitoring by BMAEPoll.
Definition: EPoll.cpp:71