aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix remaining warnings.Matt Corallo2012-07-041-2/+10
|
* Update License in File HeadersFordy2012-05-181-1/+1
| | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* Move proto version to version.h. Reduce header deps a bit more.Jeff Garzik2012-04-171-1/+0
|
* Replace several network protocol version numbers with named constantsJeff Garzik2012-04-121-3/+4
| | | | | | | stored in version.h. Also, a minor CAddress code reformat while we're in there, fixing some incorrect indentation.
* Begin doxygen-compatible commentsPieter Wuille2012-03-261-6/+9
|
* CAddrMan: stochastic address managerPieter Wuille2012-02-241-1/+1
| | | | | | | | | 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.
* Post-feb20 simplificationsPieter Wuille2012-02-211-1/+0
| | | | | Now the entire network upgraded to (initial) protocol version 209, crtainl simplifications in the source code are possible.
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* Fix handling of default portsPieter Wuille2012-01-171-1/+1
|
* Network stack refactorPieter Wuille2012-01-061-31/+8
| | | | | | | | | | | | | | | 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-9/+7
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-7/+9
|
* Move CInv to protocol.[ch]ppGiel van Schijndel2011-08-191-0/+27
| | | | | | | 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/+71
| | | | | | | 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/+52
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]>