00001 // ************************************************************** 00002 // Com ++ Framework by the C++ World 00003 // Please report defects: mailto:compp@cplusplusworld.com 00004 // Please visit: http://www.cplusplusworld.com/socketlibrary.html 00005 // ************************************************************** 00006 00007 #include "ComPlusPlus/Context.h" 00008 00009 compp::Context::Context () { 00010 00011 ContextString = ""; 00012 } 00013 00014 compp::Context::~Context () { 00015 00016 } 00017 00018 int compp::Context::GetClntPort () { 00019 return ClntPort; 00020 } 00021 00022 void compp::Context::SetClntPort ( const int &i) { 00023 ClntPort = i; 00024 } 00025 00026 std::string compp::Context::GetClntIPAddr () { 00027 return ClntIPAddr; 00028 } 00029 00030 void compp::Context::SetClntIPAddr ( const std::string & s) { 00031 ClntIPAddr = s; 00032 } 00033 00034 void compp::Context::SetContextString ( const std::string &context) { 00035 ContextString = context; 00036 } 00037 00038 const std::string compp::Context::GetContextString ( ) { 00039 return ContextString ; 00040 } 00041 00042 00043 00044 00045 00046
1.6.3