![]() |
SlaveHandler.hGo to the documentation of this file.00001 #ifndef _SLAVEHANDLER_H 00002 #define _SLAVEHANDLER_H 00003 00004 #include <SocketHandler.h> 00005 00006 00007 class InternalSocket; 00008 class SlaveSocket; 00009 class TcpSocket; 00010 class StdLog; 00011 00012 class SlaveHandler : public SocketHandler 00013 { 00014 public: 00015 SlaveHandler(); 00016 SlaveHandler(StdLog *); 00017 ~SlaveHandler(); 00018 00019 InternalSocket *GetSock(unsigned short id); 00020 // TcpSocket *GetProxySocket(unsigned short id); 00021 SlaveSocket *GetSlaveSocket(); 00022 00023 void LoadConfig(); 00024 void SaveConfig(); 00025 00026 const std::string& GetRemoteHost() { return m_remote_host; } 00027 port_t GetRemotePort() { return m_remote_port; } 00028 00029 private: 00030 SlaveHandler(const SlaveHandler& ) {} // copy constructor 00031 SlaveHandler& operator=(const SlaveHandler& ) { return *this; } // assignment operator 00032 std::string m_remote_host; 00033 port_t m_remote_port; 00034 }; 00035 00036 00037 00038 00039 #endif // _SLAVEHANDLER_H |