00001 /* **************************************************************** 00002 **************************************************************** 00003 * Com++ Professional (c) 2009 C++ World 00004 * http://www.cplusplusworld.com/ mailto:compp@cplusplusworld.com 00005 **************************************************************** 00006 **************************************************************** 00007 */ 00008 00009 #ifndef _CONTEXTH 00010 #define _CONTEXTH 00011 00012 #include <string> 00013 00014 namespace compp { 00015 00016 class Context { 00017 00018 00019 public: 00020 00021 Context() ; 00022 virtual ~Context() ; 00023 00024 00025 void SetContextString ( const std::string &context) ; 00026 const std::string GetContextString ( ); 00027 00028 int GetClntPort () ; 00029 void SetClntPort ( const int &i) ; 00030 std::string GetClntIPAddr () ; 00031 void SetClntIPAddr ( const std::string & s) ; 00032 00033 00034 protected: 00035 std::string ContextString, ClntIPAddr; 00036 bool IsAuthenticated; 00037 int ClntPort; 00038 00039 }; 00040 } 00041 00042 #endif 00043
1.6.3