00001 #ifndef CONFIG_CONNECTION_H
00002 #define CONFIG_CONNECTION_H
00003 #include <string>
00004 #include <errno.h>
00005 #include <stdlib.h>
00006 #include <unistd.h>
00007 #include <sys/time.h>
00008 #include <sys/types.h>
00009 #include <sys/socket.h>
00010 #include <netinet/in.h>
00011 #include <netdb.h>
00012 #include "Connection.h"
00013 #include "Message.h"
00014
00015
00016 class ConfigConnection: public Connection<char> {
00017 public:
00018 ConfigConnection(BufferedFile * fd);
00019 bool isMessage();
00020 void update();
00021 Message * getMessage();
00022 int write(const char * data, int size);
00023 virtual ~ConfigConnection();
00024 virtual bool readReady();
00025 virtual bool writeReady();
00026 int getFileHandle();
00027 string getType();
00028 void setType(string type);
00029 protected:
00030 char * buffer;
00031 };
00032 #endif