aboutsummaryrefslogtreecommitdiff
path: root/net.cpp
Commit message (Collapse)AuthorAgeFilesLines
* directory re-organization (keeps the old build system)Jaromil2011-04-231-1602/+0
| | | | | | | | | | | | | | | | | | | there is no internal modification of any file in this commit files are moved into directories according to established standards in sourcecode distribution; these directories contain: src - Files that are used in constructing the executable binaries, but are not installed. doc - Files in HTML and text format that document usage, quirks of the implementation, and contributor checklists. locale - Files that contain human language translation of strings used in the program contrib - Files contributed from distributions or other third party implementing scripts and auxiliary programs
* Fix for #156: UPnP segfault when no valid UPnP IGDs are found.Dan Helfman2011-04-161-2/+4
|
* Exit when no UPnP router found and fUseUPnP gets set to 0.Matt Corallo2011-04-151-1/+1
|
* Merge branch 'upnp' of https://github.com/TheBlueMatt/bitcoinGavin Andresen2011-04-121-1/+123
|\
| * Allow UPnP mapping when USE_UPNP is defined and miniupnpc is installed at ↵Matt Corallo2011-03-301-1/+123
| | | | | | | | | | | | | | | | | | | | | | build time(statically linked). Thanks joepie91 for the translation of the new copyright notices into Dutch. Thanks sipa for the translation of the new copyright notices into French. Thanks megu for the translation of the new copyright notices into Spanish. Thanks justmoon/Blitzboom for the translation of the new copyright notices into German. Thanks Joozero for the translation of the new copyright notices into Italian. Remaining translations were provided by Google Translate.
* | Update DNS seed listJeff Garzik2011-04-011-0/+1
|/
* dnsseed: fix printfJeff Garzik2011-03-081-1/+1
|
* DNS seedingJeff Garzik2011-03-081-0/+27
|
* Make send/receive limits bigger (10MB each)Gavin Andresen2011-03-031-2/+2
|
* Set maxconnections default to 125Gavin Andresen2011-02-161-14/+6
|
* Denial-of-service flood controlGavin Andresen2011-02-161-19/+31
| | | | | | | Drop connections that are either sending messages too fast to handle or are processing messages so slowly data starts to back up. Adds two new options: -maxreceivebuffer Default: 2000 (2000*1000 bytes) -maxsendbuffer Default: 256 (256*1000 bytes)
* Added 320 fresh seednodes to replace the old ones.Daniel Folkinshteyn2011-02-071-36/+40
| | | | | | | Thanks to MagicalTux for providing the data for node uptime Thanks to sgornick for scapy script to test node connectivity Closes https://github.com/bitcoin/bitcoin/issues#issue/22
* Repeatedly resetting the timestamp for seed nodes in the database was slow. ↵Chris Moore2011-01-241-1/+1
| | | | Only update the database if it's a real change.
* Fix -maxconnections. It used to account for the 8 outbound connections ↵Chris Moore2011-01-231-1/+14
| | | | twice when calculating the number of slots left for incoming connections.
* add -nolisten command line optionWitchspace2010-12-221-3/+5
|
* get external ip from ircs_nakamoto2010-12-151-12/+37
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@202 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* efficiently sort transaction dependencies in one passs_nakamoto2010-11-191-11/+11
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@184 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Update websites used for GetMyExternalIPgavinandresen2010-11-151-8/+10
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@180 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bugfixes from Dean Gores,s_nakamoto2010-10-231-21/+3
| | | | | | | addr system changes, make sure no gen before block 74000 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@173 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin Andresen: multiple instance check, -testnet use port 18333s_nakamoto2010-10-201-6/+7
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@170 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin's TEST network as -testnet switch, misc fixess_nakamoto2010-10-191-1/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@168 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* try to auto-detect whether to use 128-bit 4-way SSE2s_nakamoto2010-09-091-1/+3
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@150 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin Andresen: clean shutdown on SIGTERMs_nakamoto2010-09-081-0/+2
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@149 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* cleanup,s_nakamoto2010-09-071-53/+0
| | | | | | catch some recoverable exceptions and continue git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@148 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* propset svn:eol-style natives_nakamoto2010-08-291-1466/+1466
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@146 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* fix -datadir=./subdir relative path,s_nakamoto2010-08-121-2/+28
| | | | | | | | | | autostart off by default except on windows, fix occasional "vector iterator not dereferencable" assertion with msvc, fix readlink compile warning on linux build, use sys/param.h and BSD define instead of __BSD__, -paytxfee switch git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@130 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* always make 8 outbound connections even if have inbound,s_nakamoto2010-08-091-6/+22
| | | | | | | limit one outbound connection per a.b.?.? range, switch -maxconnections=# git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@125 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bitcoind now compiles without wxWidgets or wxBases_nakamoto2010-07-261-2/+2
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@112 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* reduced max outbound connections from 15 to 8 --version 0.3 rc4v0.3rc4s_nakamoto2010-07-021-1/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@96 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* fixed colors on ubuntu lucid,v0.2.13s_nakamoto2010-06-211-1/+1
| | | | | | | | | | | enabled -O2 in makefile.unix, boost removed -mt from their library names in 1.40, updated bitcoin icon, hashmeter, generated and hashmeter log entries -- version 0.2.13 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@86 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* use seed nodes as fallback if IRC fails or with TORv0.2.12s_nakamoto2010-06-181-5/+73
| | | | | | -- version 0.2.12 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@85 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* more addr message error checkingv0.2.11s_nakamoto2010-06-151-3/+3
| | | | | | -- version 0.2.11 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@83 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* automatically change displayed address whenever it receives anything,v0.2.10s_nakamoto2010-06-101-2/+7
| | | | | | | | | | added help and -? for daemon command line rpc commands, only relay addr messages to 5 random nodes to save bandwidth, started setting wtx.fFromMe flag, trickle out tx inventory messages to protect privacy -- version 0.2.10 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@81 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Mac OS build fixes by laszlov0.2.8s_nakamoto2010-05-191-3/+1
| | | | | | -- version 0.2.8 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@76 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* strip out unfinished product, review and market stuff, s_nakamoto2010-02-151-9/+0
| | | | | | enable _() instead of wxT() in uiproject.fbp so it uses wxGetTranslation for the wxFormBuilder generated part of the UI git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@64 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* renamed a few rpc methodss_nakamoto2010-02-141-4/+0
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@63 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Workaround for bug on wxWidgets 2.9.0 Ubuntu 9.10 64-bit where first ↵s_nakamoto2010-02-141-1/+1
| | | | | | character of the hidden columns were displayed so status column had three numbers overprinted. Fixed by adding a leading space to the hidden columns. 64-bit compile with wxWidgets 2.9.0 seems to be fully working normally now. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@62 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* command line and JSON-RPC first draft, requires Boost 1.35 or higher for ↵s_nakamoto2010-02-121-10/+5
| | | | | | | | | | | boost::asio, added SetBitcoinAddress and GetBitcoinAddress methods on CScript, critsect interlocks around mapAddressBook, added some random delays in tx broadcast to improve privacy, now compiles with MSVC 8.0 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@60 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* simplify AddAddress, s_nakamoto2010-01-281-5/+5
| | | | | | | | readcompactsize limit, fixed a 64-bit compile error in serialize.h, change status "# blocks" to "# confirmations" and widen the column. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@53 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* filter out duplicate getblocks and don't relay inv messages during initial ↵v0.2rc2v0.2.0s_nakamoto2009-12-141-2/+19
| | | | | | block download -- 0.2 rc2 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@49 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* misc exit code, updated setup.nsis_nakamoto2009-12-131-3/+8
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@46 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* retry IRC if name in use, s_nakamoto2009-12-111-1/+24
| | | | | | | | resize to fit ubuntu's giant default font, scroll debug.log, pause gen during initial block download git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@44 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bugfix Db::open/close and zombie sockets bugs fix double-close of socket handle,s_nakamoto2009-11-181-46/+64
| | | | | | | | | | keep databases open, close db cursors, initial block download in batches of 500 blocks, fix misc warnings, subver linux-test8 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@40 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* monitor ThreadSocketHandler and terminate and restart if hung, convert ↵s_nakamoto2009-11-131-122/+220
| | | | | | _beginthread to CreateThread wrapper, disconnect inactive connections, ping, break up long messages to speed up initial download, better priorities for initiating connections, track how many nodes have requested our blocks and transactions, status #/offline and warning message on unsent blocks, minimize on close as separate option -- linux-test5 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@38 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Get local host IP on Linux, Shutdown() a little cleaner -- linux-0.1.6-test1 ↵v0.1.6test1s_nakamoto2009-11-081-9/+49
| | | | | | waypoint git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@37 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* ui tweaks, multiple xpm icon sizess_nakamoto2009-11-071-2/+2
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@36 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* UI tweaks, use BindListenPort to detect instance already running, ↵s_nakamoto2009-11-071-47/+51
| | | | | | setsockopt(SO_REUSEADDR) so can bind during TIME_WAIT after exit and restart git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@35 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* got rid of CheckForShutdown, replaced some thread-unsafe wxWidgets calls, ↵s_nakamoto2009-11-061-91/+102
| | | | | | Linux fixes, socket send MSG_NOSIGNAL, bind INADDR_ANY, works reliably on Linux now except if wxMessageBox is used in a thread other than the GUI thread git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@33 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* unix build merged in, bitmap resources from xpm instead of rc, better addr ↵s_nakamoto2009-11-051-88/+89
| | | | | | relay, better selection of addrs by time last seen for faster connect git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@32 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* move debug.log and db.log to data dir, portable GetDataDir, optimize ↵s_nakamoto2009-11-011-7/+27
| | | | | | GetBalance, fix repaint bogdown, -addnode and -? switches git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@25 1a98c847-1fd6-4fd8-948a-caf3550aa51b