aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.