Rudiments
/home/dmuse/src/rudiments/include/rudiments/server.h
00001 // Copyright (c) 2002 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_SERVER_H
00005 #define RUDIMENTS_SERVER_H
00006 
00007 #include <rudiments/private/serverincludes.h>
00008 
00009 #ifdef RUDIMENTS_NAMESPACE
00010 namespace rudiments {
00011 #endif
00012 
00013 class serverprivate;
00014 
00017 class RUDIMENTS_DLLSPEC server : public filedescriptor {
00018         public:
00019 
00021                 server();
00022 
00025                 server(const server &s);
00026 
00029                 server  &operator=(const server &s);
00030 
00032                 virtual ~server();
00033 
00036                 virtual bool    bind()=0;
00037 
00041                 virtual bool    listen(int32_t backlog)=0;
00042 
00046                 virtual filedescriptor  *accept()=0;
00047 
00048         #include <rudiments/private/server.h>
00049 };
00050 
00051 #ifdef RUDIMENTS_NAMESPACE
00052 }
00053 #endif
00054 
00055 #endif