00001 #ifndef gBHTTP_PROXY_X_H 00002 #define gBHTTP_PROXY_X_H 00003 00004 #include "gnet.h" 00005 //////////////////////////////////////////////////////////// 00006 struct sOptProxy { 00007 sOptProxy () 00008 : port( 0 ) { 00009 } 00010 00011 gString sHost; 00012 t_gPort port; 00013 00014 // Get methods 00015 bool IsValid () { 00016 return sHost.IsEmpty()==false && port>0; 00017 } 00018 00019 // Set methods 00020 void Reset () { 00021 sHost.SetEmpty(); 00022 port = 0; 00023 } 00024 }; 00025 //////////////////////////////////////////////////////////// 00026 #endif //gBHTTP_PROXY_X_H 00027