Rudiments
server.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_SERVER_H
5 #define RUDIMENTS_SERVER_H
6 
7 #include <rudiments/private/serverincludes.h>
8 
9 class serverprivate;
10 
13 class RUDIMENTS_DLLSPEC server : public filedescriptor {
14  public:
15 
17  server();
18 
21  server(const server &s);
22 
25  server &operator=(const server &s);
26 
28  virtual ~server();
29 
32  virtual bool bind()=0;
33 
37  virtual bool listen(int32_t backlog)=0;
38 
42  virtual filedescriptor *accept()=0;
43 
44  #include <rudiments/private/server.h>
45 };
46 
47 #endif