Create TCPSession2 for outpubound connections.

This commit is contained in:
Brad Arant committed 2022-10-17 20:03:23 -07:00
1 parent 5c87225c6f
commit fd70c79282
129 files changed
+1902 -710

No files matched your search

+11 -9
View File
@@ -32,6 +32,8 @@ namespace core {
public:
volatile long long eventId = 0;
///
/// The constructor for the BMAEPoll object.
///
@@ -41,9 +43,9 @@ namespace core {
///
/// The destructor for the BMAEPoll object.
///
~EPoll();
///
/// Use the start() method to initiate the threads and begin epoll queue processing.
///
@@ -109,22 +111,22 @@ namespace core {
///
/// @param session the session to write the requested data to.
///
int processCommand(coreutils::ZString &request, TCPSession &session) override; ///<Output the threads array to the console.
void resetSocket(Socket *socket);
private:
int epfd;
int numberOfThreads;
std::vector<Thread> threads;
volatile bool terminateThreads;
int numberOfThreads;
std::vector<Thread> threads;
volatile bool terminateThreads;
void enableSocket(Socket *socket);
void disableSocket(Socket *socket);
};
}
#endif