Rudiments
inetserversocket.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_INETSERVERSOCKET_H
5 #define RUDIMENTS_INETSERVERSOCKET_H
6 
7 #include <rudiments/private/inetserversocketincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class inetserversocketprivate;
14 
25 class RUDIMENTS_DLLSPEC inetserversocket : public serversocket, private inetsocketutil {
26  public:
27 
30 
34 
37  inetserversocket &operator=(const inetserversocket &i);
38 
40  virtual ~inetserversocket();
41 
60  bool listen(const char *address,
61  uint16_t port,
62  int32_t backlog);
63 
64 
65 
70  bool initialize(const char *address, uint16_t port);
71 
75  bool bind();
76 
82  bool listen(int32_t backlog);
83 
89  filedescriptor *accept();
90 
95  uint16_t getPort();
96 
97  #include <rudiments/private/inetserversocket.h>
98 };
99 
100 #ifdef RUDIMENTS_NAMESPACE
101 }
102 #endif
103 
104 #endif