Network stack refactor
authorPieter Wuille <pieter.wuille@gmail.com>
Tue, 3 Jan 2012 22:33:31 +0000 (23:33 +0100)
committerPieter Wuille <pieter.wuille@gmail.com>
Fri, 6 Jan 2012 17:55:37 +0000 (18:55 +0100)
commit67a42f929b1434f647c63922fd02dc2b93b28060
tree9c4313e815bd77e817f2dc5b796347d343458d0e
parent7486c64dd8436febbe59e82dbb875e83ad6b5194
Network stack refactor

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.
21 files changed:
bitcoin-qt.pro
src/compat.h [new file with mode: 0644]
src/headers.h
src/init.cpp
src/irc.cpp
src/main.cpp
src/makefile.linux-mingw
src/makefile.mingw
src/makefile.osx
src/makefile.unix
src/net.cpp
src/net.h
src/netbase.cpp [new file with mode: 0644]
src/netbase.h [new file with mode: 0644]
src/protocol.cpp
src/protocol.h
src/qt/optionsmodel.cpp
src/test/DoS_tests.cpp
src/uint256.h
src/util.cpp
src/util.h