#ifndef _EARLY_DEATH_H_
#define _EARLY_DEATH_H_ 1

#include "cdevEventHandler.h"
#include "cdevAddr.h"
#include "cdevSocketConnector.h"
#include "cdevReactor.h"
#include "fifo.h"

// *****************************************************************************
// * EarlyDeathHandler:
// *	This class provides the mechanisms that will be used to service the
// *	requests of a client.
// *****************************************************************************
class EarlyDeathHandler : public cdevEventHandler
{
protected:
	cdevSocketConnector         stream; 
	
public:
	EarlyDeathHandler                    (void);
	~EarlyDeathHandler                   (void);
	virtual int        open              (const cdevAddr &addr);
	virtual int        getHandle         (void) const;
	virtual int        handleClose       (void);
	virtual int        handleInput       (void);
 	virtual int        handleOutput      (void);
	virtual int        handleExcept      (void);
};

#endif /* _EARLY_DEATH_H_ */ 
