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

+13 -13
View File
@@ -10,7 +10,7 @@
namespace core {
class EPoll;
///
/// Thread
///
@@ -18,37 +18,37 @@ namespace core {
/// object to allow maintaining a status value for monitoring the thread activity. EPoll will instantiate
/// a Thread object for each thread specified in the EPoll's start method.
///
class Thread : public Object {
public:
public:
Thread(EPoll &ePoll);
Thread(EPoll &ePoll, ThreadScope *thread);
~Thread();
///
/// Start the thread object. This will cause the epoll scheduler to commence reading the epoll queue.
///
void start();
void join();
std::string getStatus();
std::string getStatus();
pid_t getThreadId();
int getCount();
void output(std::stringstream &data);
void output(std::stringstream &data);
private:
EPoll &ePoll; // The EPoll control object.
std::string status;
int count;
int count;
std::thread *_thread;
void print_thread_start_log();
pid_t threadId;
void run();
void run();
ThreadScope *thread;
};
}
#endif