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

« back to all changes in this revision

Viewing changes to src/amuleIPV4Address.h

  • 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 Carlo Wood ( carlo@alinoe.com )
5
 
// Copyright (c) 2004-2008 aMule Team ( admin@amule.org / http://www.amule.org )
 
4
// Copyright (c) 2004-2009 Carlo Wood ( carlo@alinoe.com )
 
5
// Copyright (c) 2004-2009 aMule Team ( admin@amule.org / http://www.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
46
46
//                      wxASSERT(0);
47
47
                        return false;
48
48
                }
49
 
                
 
49
 
 
50
// ADUNANZA BEGIN
 
51
// Per compilazione con wxWidgets 2.9.x e Snow Leopard
 
52
#if 0           
50
53
                return Hostname(StringIPtoUint32(name));
 
54
#else
 
55
                return wxIPV4address::Hostname(name);
 
56
#endif
 
57
// ADUNANZA END
51
58
        }
52
59
 
53
60
        virtual bool Hostname(uint32 ip) {
56
63
//                      wxASSERT(0);
57
64
                        return false;
58
65
                }
59
 
                
 
66
// ADUNANZA BEGIN
 
67
// Per compilazione con wxWidgets 2.9.x e Snow Leopard
 
68
#if 0           
60
69
                // We have to take care that wxIPV4address's internals changed on 2.5.2
61
70
                return GAddress_INET_SetHostAddress(m_address,wxUINT32_SWAP_ALWAYS(ip))==GSOCK_NOERROR;
 
71
#else
 
72
                return wxIPV4address::Hostname(Uint32toStringIP(ip));
 
73
#endif
 
74
// ADUNANZA END
62
75
        }
63
76
};
64
77