fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 simpleserver.h - description 00003 00004 begin : Wed Oct 25 2000 00005 copyright : (C) 2000 by A Kopmann 00006 email : kopmann@hpe.fzk.de 00007 status : 00008 test : 00009 history : 00010 ***************************************************************************/ 00011 00012 00013 #ifndef SIMPLESERVER_H 00014 #define SIMPLESERVER_H 00015 00016 00017 #include <akutil/baseserver.h> 00018 00019 00061 class SimpleServer : public BaseServer { 00062 public: 00063 SimpleServer(unsigned short port); 00064 //SimpleServer(unsigned short port, SimpleServer *s); 00065 00066 00067 protected: 00078 virtual int read_from_client(int filedes); 00079 00083 virtual void executeCmd(int client, short cmd, unsigned int *arg, short n); 00084 00085 virtual void executeCmd(int client, short cmd, unsigned long *arg, short n); 00086 }; 00087 00088 #endif