#ifndef CONFIG_CONNECTION_H
#define CONFIG_CONNECTION_H

#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include "Connection.h"
#include "Message.h"


class ConfigConnection: Connection<char> {
	public:
		ConfigConnection(BufferedFile fd);
		bool isMessage(); // Is there a message from the config connection?
    		void update();    // Sends the ConfigConnection a update of current system status.
		Message getMessage(); // Gets the current message on the message queue.
		int write(const char * data, int size);
		virtual ~ConfigConnection();
		string getType();
		void setType(string type);
	protected:
		char * buffer; //temp work space.
};
#endif

