3es  0.7
3estcplistensocket.h
1 //
2 // author: Kazys Stepanas
3 //
4 #ifndef _3ESTCPLISTENSOCKET_H_
5 #define _3ESTCPLISTENSOCKET_H_
6 
7 #include "3es-core.h"
8 
9 namespace tes
10 {
11  class TcpSocket;
12  struct TcpListenSocketDetail;
13 
17  class _3es_coreAPI TcpListenSocket
18  {
19  public:
23  ~TcpListenSocket();
24 
29  bool listen(unsigned short port);
30 
35  void close();
36 
39  bool isListening() const;
40 
48  TcpSocket *accept(unsigned timeoutMs = 0);
49 
54  void releaseClient(TcpSocket *client);
55 
56  private:
57  TcpListenSocketDetail *_detail;
58  };
59 
60 }
61 
62 #endif // _3ESTCPLISTENSOCKET_H_
Represents a TCP server socket, listening for connections.
Definition: 3estcplistensocket.h:17
Definition: qt/3estcpdetail.h:33
Definition: 3esbounds.h:13
A TCP/IP communication socket implementation.
Definition: 3estcpsocket.h:16