Rudiments
unixserversocket.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_UNIXSERVERSOCKET_H
5 #define RUDIMENTS_UNIXSERVERSOCKET_H
6 
7 #include <rudiments/private/unixserversocketincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class unixserversocketprivate;
14 
32 class RUDIMENTS_DLLSPEC unixserversocket : public serversocket, private unixsocketutil {
33  public:
34 
37 
41 
44  unixserversocket &operator=(const unixserversocket &u);
45 
47  virtual ~unixserversocket();
48 
60  bool listen(const char *filename,
61  mode_t mask,
62  int32_t backlog);
63 
64 
65 
72  bool initialize(const char *filename, mode_t mask);
73 
77  bool bind();
78 
84  bool listen(int32_t backlog);
85 
86 
92  filedescriptor *accept();
93 
94  #include <rudiments/private/unixserversocket.h>
95 };
96 
97 #ifdef RUDIMENTS_NAMESPACE
98 }
99 #endif
100 
101 #endif