#ifndef __ProxyMainLoop_h_ #define __ProxyMainLoop_h_ #include "../shared/ThreadClass.h" #include "../shared/Messages.h" class ProxyMainLoop : private ThreadClass { private: enum { // From server to us. mtServerInput, /* New client attached to us. This is the connection which is * persistant until the virtual connection is broken. This connection is used to send data to the client from the server. */ mtNewClientConnection, // This is how the client sends data to the server. mtNewClientData, // Standard request from destructor. mtQuit }; RequestQueue _incoming; InputListener _serverListener; protected: void threadFunction(); public: ProxyMainLoop(); ~ProxyMainLoop(); }; #endif