Main Page   Class Hierarchy   File List  

ConfigConnection.h

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(); // Is there a message from the config connection?
00020                 void update();    // Sends the ConfigConnection a update of current system status.
00021                 Message * getMessage(); // Gets the current message on the message queue.
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; //temp work space.
00031 };
00032 #endif

Generated on Sat Dec 7 21:28:09 2002 by doxygen1.2.18