00001 // This file is part of BOINC. 00002 // http://boinc.berkeley.edu 00003 // Copyright (C) 2008 University of California 00004 // 00005 // BOINC is free software; you can redistribute it and/or modify it 00006 // under the terms of the GNU Lesser General Public License 00007 // as published by the Free Software Foundation, 00008 // either version 3 of the License, or (at your option) any later version. 00009 // 00010 // BOINC is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 // See the GNU Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with BOINC. If not, see <http://www.gnu.org/licenses/>. 00017 00018 #ifndef _PROXY_INFO_ 00019 #define _PROXY_INFO_ 00020 00021 #include "miofile.h" 00022 00023 struct PROXY_INFO { 00024 bool use_http_proxy; 00025 bool use_socks_proxy; 00026 bool use_http_auth; 00027 int socks_version; 00028 char socks_server_name[256]; 00029 char http_server_name[256]; 00030 int socks_server_port; 00031 int http_server_port; 00032 char http_user_name[256]; 00033 char http_user_passwd[256]; 00034 char socks5_user_name[256]; 00035 char socks5_user_passwd[256]; 00036 char noproxy_hosts[256]; 00037 int parse(MIOFILE&); 00038 int write(MIOFILE&); 00039 void clear(); 00040 }; 00041 00042 #endif 00043
1.5.6