aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode dataJeff Garzik2012-06-291-0/+19
|/
* Stop processing messages on full send buffer and dont disconnect.Matt Corallo2012-06-271-2/+2
| | | | | | Also decrease default send/receive buffer sizes from 10 to 5 mb as this patch makes it easy for a node to fill both instead of only send.
* Merge pull request #1174 from sipa/torhsGregory Maxwell2012-06-231-0/+1
|\ | | | | Tor hidden service support
| * Add -tor and related configurationPieter Wuille2012-06-231-0/+1
| |
* | Introduce -debugnet option, thereby quieting some redundant debug messagesJeff Garzik2012-06-221-1/+2
|/ | | | | | | | | | | | | | | | | | | | | | Prior to this change, each TX typically generated 3+ debug messages, askfor tx 8644cc97480ba1537214 0 sending getdata: tx 8644cc97480ba1537214 askfor tx 8644cc97480ba1537214 1339640761000000 askfor tx 8644cc97480ba1537214 1339640881000000 CTxMemPool::accept() : accepted 8644cc9748 (poolsz 6857) After this change, there is only one message for each valid TX received CTxMemPool::accept() : accepted 22a73c5d8c (poolsz 42) and two messages for each orphan tx received ERROR: FetchInputs() : 673dc195aa mempool Tx prev not found 1e439346fc stored orphan tx 673dc195aa (mapsz 19) The -debugnet option, or its superset -debug, will restore the full debug output.
* Rework network config settingsPieter Wuille2012-05-311-1/+3
|
* 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.
* CAddrDB: Replace BDB-managed addr.dat with internally managed peers.datJeff Garzik2012-05-161-1/+0
|
* Merge pull request #1262 from Diapolo/no_double_timestampsGregory Maxwell2012-05-141-3/+1
|\ | | | | no more double timestamps in debug.log
| * ensure that no double timestamps show up in the debug.log, by removing ↵Philip Kaufmann2012-05-131-3/+1
| | | | | | | | manual timestamps from the source (now only -logtimestamps parameter adds timestamps to debug.log)
* | -onlynet instead of -blocknetPieter Wuille2012-05-141-0/+1
|/
* Take -port into account when resolving -bind'sPieter Wuille2012-05-131-1/+2
|
* Merge pull request #1021 from sipa/ipv6Pieter Wuille2012-05-111-12/+18
|\ | | | | IPv6 node support
| * Separate listening sockets, -bind=<addr>Pieter Wuille2012-05-111-1/+2
| |
| * Keep port information for local addressesPieter Wuille2012-05-111-11/+12
| |
| * Add -blocknet to prevent connections to a given networkPieter Wuille2012-05-111-0/+2
| |
| * Limited relaying/storing of foreign addressesPieter Wuille2012-05-111-0/+2
| | | | | | | | | | | | | | Introduce a boolean variable for each "network" (ipv4, ipv6, tor, i2p), and track whether we are likely to able to connect to it. Addresses in "addr" messages outside of our network get limited relaying and are not stored in addrman.
* | Merge pull request #1260 from sipa/splitsyncGregory Maxwell2012-05-111-0/+1
|\ \ | | | | | | Split synchronization mechanisms from util.{h,cpp}
| * | Use semaphores instead of condition variablesPieter Wuille2012-05-111-0/+1
| |/
* / Support multi-threaded JSON-RPCDavid Joel Schwartz2012-05-081-1/+2
|/ | | | | | | | | | | Change internal HTTP JSON-RPC server from single-threaded to thread-per-connection model. The IP filter list is applied prior to starting the thread, which then processes the RPC. A mutex covers the entire RPC operation, because not all RPC operations are thread-safe. [minor modifications by jgarzik, to make change upstream-ready]
* Added -externalip and -discoverPieter Wuille2012-05-041-0/+3
| | | | | | -externalip=<ip> can be used to explicitly set the public IP address of your node. -discover=0 can be used to disable the automatic public IP discovery system.
* Support for multiple local addressesPieter Wuille2012-05-041-1/+16
|
* Add -seednode connections, and use this for -dnsseed + -proxydnsPieter Wuille2012-05-041-0/+3
|
* Support connecting by hostnames passed to proxy (-proxydns)Pieter Wuille2012-05-041-3/+4
|
* Further reduce header dependenciesPieter Wuille2012-04-171-7/+3
| | | | | | | This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
* Merge pull request #1106 from jgarzik/sign-compareGavin Andresen2012-04-171-4/+4
|\ | | | | Fix many sign-comparison warnings found in bitcoin codebase
| * CNode's nHeaderStart may be negative, so change its typeJeff Garzik2012-04-151-4/+4
| |
* | Replace several network protocol version numbers with named constantsJeff Garzik2012-04-121-2/+2
|/ | | | | | | stored in version.h. Also, a minor CAddress code reformat while we're in there, fixing some incorrect indentation.
* Use scoped locks instead of CRITICAL_BLOCKPieter Wuille2012-04-091-7/+19
|
* Remove half-implemented publish/subscribe systemGavin Andresen2012-04-041-61/+0
|
* Begin doxygen-compatible commentsPieter Wuille2012-03-261-2/+2
|
* Merge branch 'addrman' of https://github.com/sipa/bitcoinGavin Andresen2012-03-221-3/+3
|\
| * CAddrMan: stochastic address managerPieter Wuille2012-02-241-3/+3
| | | | | | | | | | | | | | | | | | 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.
* | Add mruset and use it for setInventoryKnownPieter Wuille2012-02-271-1/+3
|/
* Merge branch 'postfeb20' of https://github.com/sipa/bitcoinGavin Andresen2012-02-221-16/+7
|\
| * Post-feb20 simplificationsPieter Wuille2012-02-211-16/+7
| | | | | | | | | | Now the entire network upgraded to (initial) protocol version 209, crtainl simplifications in the source code are possible.
* | Fix #626: RecvLine wrong error messagePieter Wuille2012-02-191-0/+1
|/ | | | Also moved RecvLine to net.cpp.
* Symbolic names for threadsPieter Wuille2012-02-161-2/+14
| | | | | Introduce an enum threadId, and use symbolic indices when accessing vnThreadsRunning.
* Macros for manual critical sectionsPieter Wuille2012-02-111-3/+3
|
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* 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-13/+7
| | | | | | | | | | | | | | | 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-20/+18
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-18/+20
|
* Implement BIP 14 : separate protocol version from client versionGavin Andresen2011-12-191-11/+1
|
* Move DNS Seed lookup to a new thread.Matt Corallo2011-11-261-1/+0
|
* 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.
* Framework for banning mis-behaving peersGavin Andresen2011-09-211-1/+27
|
* missed printf in AbortMessage(); merged printfs in EndMessageNils Schneider2011-09-171-3/+4
|
* log low-level network messages only when fDebug is setNils Schneider2011-09-171-4/+7
|