aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix sign-compare warnings: netbase's Lookup* max-solutions may be unsignedJeff Garzik2012-04-151-4/+4
|
* Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik2012-04-151-1/+1
| | | | | foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
* CAddrMan: stochastic address managerPieter Wuille2012-02-241-3/+10
| | | | | | | | | Design goals: * Only keep a limited number of addresses around, so that addr.dat does not grow without bound. * Keep the address tables in-memory, and occasionally write the table to addr.dat. * Make sure no (localized) attacker can fill the entire table with his nodes/addresses. See comments in addrman.h for more detailed information.
* fix typo in CNetAddr::IsRFC4843() (fixes #850)Wladimir J. van der Laan2012-02-171-1/+1
|
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* Fix handling of default portsPieter Wuille2012-01-171-8/+10
|
* Merge branch 'keepnode' of https://github.com/TheBlueMatt/bitcoinGavin Andresen2012-01-161-3/+15
|\
| * Add -keepnode which attempts to -addnode and keep a connection openMatt Corallo2012-01-121-3/+15
| |
* | Compile with extra warnings turned on. And more makefile/code tidying up.Gavin Andresen2012-01-121-1/+3
|/ | | | | | | This turns on most gcc warnings, and removes some unused variables and other code that triggers warnings. Exceptions are: -Wno-sign-compare : triggered by lots of comparisons of signed integer to foo.size(), which is unsigned. -Wno-char-subscripts : triggered by the convert-to-hex functions (I may fix this in a future commit).
* Network stack refactorPieter Wuille2012-01-061-0/+715
This introduces CNetAddr and CService, respectively wrapping an (IPv6) IP address and an IP+port combination. This functionality used to be part of CAddress, which also contains network flags and connection attempt information. These extra fields are however not always necessary. These classes, along with logic for creating connections and doing name lookups, are moved to netbase.{h,cpp}, which does not depend on headers.h. Furthermore, CNetAddr is mostly IPv6-ready, though IPv6 functionality is not yet enabled for the application itself.