aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add casts for unavoidable signed/unsigned comparisonsJeff Garzik2012-04-231-1/+1
| | | | | At these code sites, it is preferable to cast rather than change a variable's type.
* 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.
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* Network stack refactorPieter Wuille2012-01-061-167/+5
| | | | | | | | | | | | | | | 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.
* Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-211-8/+6
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-6/+8
|
* Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen2011-12-191-1/+1
|
* Fix build on windows and macGavin Andresen2011-10-071-1/+1
| | | | | | Replaced all occurrences of #if* __WXMSW__ with WIN32, and all occurrences of __WXMAC_OSX__ with MAC_OSX, and made sure those are defined appropriately in the makefile and bitcoin-qt.pro.
* Move CInv to protocol.[ch]ppGiel van Schijndel2011-08-191-0/+61
| | | | | | | This commit does *not* and should not modify *any* code, it only moves it from net.h and splits it across protocol.cpp and protocol.hpp. Signed-off-by: Giel van Schijndel <[email protected]>
* Move CAddress to protocol.[ch]ppGiel van Schijndel2011-08-191-0/+190
| | | | | | | This commit does *not* and should not modify *any* code, it only moves it from net.h and splits it across protocol.cpp and protocol.hpp. Signed-off-by: Giel van Schijndel <[email protected]>
* Start moving protocol-specific code to protocol.[ch]ppGiel van Schijndel2011-08-191-0/+61
Move CMessageHeader from net.h to protocol.[ch]pp, with the implementation in the .cpp compilation unit (compiling once is enough). This commit does *not* and should not modify *any* code, it only moves it from net.h and splits it across protocol.cpp and protocol.hpp. Indentation changes aside the closest thing to a modification of code is the addition of the 'TODO' comment (the execution of which requires code modifications and thus doesn't belong in this commit). Signed-off-by: Giel van Schijndel <[email protected]>