7 #include "BMASession.h" 8 #include "BMACommand.h" 117 std::map<int, BMASocket *> sockets;
118 std::vector<BMAThread> threads;
119 volatile bool terminateThreads;
int maxSockets
The maximum number of socket allowed.
Definition: BMAEPoll.h:96
Definition: BMASocket.h:31
void processCommand(std::string command, BMASession *session) override
Output the threads array to the console.
Definition: BMAEPoll.cpp:112
int getDescriptor()
Return the descriptor for the ePoll socket.
Definition: BMAEPoll.cpp:108
BMAEPoll()
Definition: BMAEPoll.cpp:7
Definition: BMAEPoll.h:29
bool unregisterSocket(BMASocket *socket)
Unregister a BMASocket from monitoring by BMAEPoll.
Definition: BMAEPoll.cpp:83
bool registerSocket(BMASocket *socket)
Register a BMASocket for monitoring by BMAEPoll.
Definition: BMAEPoll.cpp:70
bool start(int numberOfThreads, int maxSockets)
Start the BMAEPoll processing.
Definition: BMAEPoll.cpp:20
Definition: BMACommand.h:8
void eventReceived(struct epoll_event event)
Dispatch event to appropriate socket.
Definition: BMAEPoll.cpp:96
bool isStopping()
Returns a true if the stop command has been requested.
Definition: BMAEPoll.cpp:66
bool stop()
Stop and shut down the BMAEPoll processing.
Definition: BMAEPoll.cpp:46
Definition: BMASession.h:18
~BMAEPoll()
Definition: BMAEPoll.cpp:16