Argentum Online - Servidor
th_client_accepter.h
1 #ifndef TH_CLIENT_ACCEPTER_H
2 #define TH_CLIENT_ACCEPTER_H
3 
4 #include "../../include/network/socket.h"
5 #include "../../include/thread.h"
6 #include "../../include/types.h"
7 
8 class ThClientAccepter : public Thread {
9  private:
10  Socket listener;
11  bool running;
12 
13  ClientId get_next_id();
14 
15  public:
16  ThClientAccepter(Socket listener);
17 
18  virtual void run() override;
19 
20  void stop();
21 
23 };
24 
25 #endif // TH_CLIENT_ACCEPTER_H
Socket
Definition: socket.h:12
Thread
Definition: thread.h:9
ThClientAccepter
Definition: th_client_accepter.h:8
ThClientAccepter::run
virtual void run() override
Function to be called by the thread.
Definition: th_client_accepter.cpp:19