My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
TcpListener.h
Go to the documentation of this file.
1 #ifndef TCPLISTENER_H
2 #define TCPLISTENER_H
3 
11 namespace gcp {
12  namespace util {
13 
14  class TcpListener {
15  public:
16 
20  TcpListener(unsigned port, unsigned queueSize);
21 
25  virtual ~TcpListener();
26 
33  int acceptConnection(bool blocking=false);
34 
38  inline int getFd() { return fd_;};
39 
40  private:
41 
45  int fd_;
46 
47  }; // End class TcpListener
48 
49  } // End namespace util
50 } // End namespace gcp
51 
52 
53 #endif // End #ifndef
54 
55 
virtual ~TcpListener()
Definition: TcpListener.cc:41
TcpListener(unsigned port, unsigned queueSize)
Definition: TcpListener.cc:22
int acceptConnection(bool blocking=false)
Definition: TcpListener.cc:51
int getFd()
Definition: TcpListener.h:38
Definition: TcpListener.h:14