~ubuntu-branches/ubuntu/precise/amule-adunanza/precise

« back to all changes in this revision

Viewing changes to src/Proxy.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-02-18 21:16:23 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100218211623-gptwe60zx1knfkmu
Tags: 2010.1+2.2.6-0ubuntu1
* New upstream release (LP: #524697)
  - Drop manpages_spelling_fixes.diff fixed by upstream
  - Drop cryptopp-reference.diff fixed by upstream
  - Bump Standards-Version no changes required
  - Update install files (amule -> amuleadunanza)
  - debian/rules: amule.xpm -> amuleadunanza.xpm
  - Add README.Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// This file is part of the aMule Project.
3
3
//
4
 
// Copyright (c) 2004-2008 aMule Team ( admin@amule.org / http://www.amule.org )
5
 
// Copyright (c) 2004-2008 Marcelo Jimenez ( phoenix@amule.org )
 
4
// Copyright (c) 2004-2009 aMule Team ( admin@amule.org / http://www.amule.org )
 
5
// Copyright (c) 2004-2009 Marcelo Jimenez ( phoenix@amule.org )
6
6
//
7
7
// Any parts of this program derived from the xMule, lMule or eMule project,
8
8
// or contributed by third-party developers are copyrighted by their
310
310
        m_ok = !m_proxyClientSocket->Error();
311
311
        if (!m_ok) {
312
312
                m_lastError = m_proxyClientSocket->LastError();
 
313
// ADUNANZA BEGIN
 
314
#if 0
313
315
                m_ok = m_lastError == wxSOCKET_WOULDBLOCK;
 
316
#else
 
317
                m_ok = (m_lastError == wxSOCKET_WOULDBLOCK);
 
318
#endif
 
319
// ADUNANZA END
314
320
                if (m_ok) {
315
321
                        m_canReceive = false;
316
322
                }
1191
1197
 
1192
1198
void CProxySocket::SetProxyData(const CProxyData *proxyData)
1193
1199
{
 
1200
// ADUNANZA BEGIN
 
1201
#if 0
1194
1202
        m_useProxy = proxyData != NULL && proxyData->m_proxyEnable;
 
1203
#else
 
1204
        m_useProxy = ((proxyData != NULL) && (proxyData->m_proxyEnable));
 
1205
#endif
 
1206
// ADUNANZA BEGIN
 
1207
 
1195
1208
        if (proxyData) {
1196
1209
                m_proxyData = *proxyData;
1197
1210
                m_proxyAddress.Hostname(m_proxyData.m_proxyHostName);