#ifndef CLIENTHANDLER_H #define CLIENTHANDLER_H ///////////////////////////////////////////////////////////////////// // ClientHandler.h - Defines processing of messages at receiver // // // // Jim Fawcett, CSE687 - Object Oriented Design, Spring 2006 // ///////////////////////////////////////////////////////////////////// #include "SocketServer.h" #include "TestForm/Form1.h" #include using namespace TestForm; class ClientHandlerProc : public IProc { public: ClientHandlerProc(Form1^ pMainForm) : pForm(pMainForm) { Trace("creating client handler"); } ~ClientHandlerProc() { Trace("destroying client handler"); } IProc* clone() { Trace("creating client handler"); return new ClientHandlerProc(pForm); } void run(); private: std::string msg; bool done; gcroot pForm; }; #endif