Lock vnThreadsRunning[THREAD_RPCHANDLER].
Fix build error.
Merge branch 'patch-3' of https://github.com/xanatos/bitcoin
Merge branch 'patch-5' of https://github.com/xanatos/bitcoin
Create new rpcnet module, and move 'getconnectioncount' RPC to it
Fix a few typos
Merge pull request #1532 from fanquake/master

Fix a couple typos
RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode data
fix a typo in OptionsDialog
Merge pull request #1537 from Diapolo/fix_awesome_typo

fix an awesome typo in OptionsDialog ^^
Merge pull request #1531 from jgarzik/peerinfo

RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode data
Fix a typo in TransactionDesc
Merge pull request #1539 from cardpuncher/patch-3

Fix a typo in TransactionDesc
Fix a couple more typos
Merge pull request #1540 from fanquake/master

Fix a Couple Typos
Remove useless high-volume printf (fixes #1544).
Change default send buffer to 1Mb.
RPC getpeerinfo: s/height/startingheight/ for returned nStartingHeight value
Do not consider inbound peers for outbound network group exclusion.

Bitcoin will not make an outbound connection to a network group
(/16 for IPv4) that it is already connected to. This means that
if an attacker wants good odds of capturing all a nodes outbound
connections he must have hosts on a a large number of distinct
groups.

Previously both inbound and outbound connections were used to
feed this exclusion. The use of inbound connections, which can be
controlled by the attacker, actually has the potential of making
sibyl attacks _easier_: An attacker can start up hosts in groups
which house many honest nodes and make outbound connections to
the victim to exclude big swaths of honest nodes. Because the
attacker chooses to make the outbound connection he can always
beat out honest nodes for the consumption of inbound slots.

At _best_ the old behavior increases attacker costs by a single
group (e.g. one distinct group to use to fill up all your inbound
slots), but at worst it allows the attacker to select whole
networks you won't connect to.

This commit makes the nodes use only outbound links to exclude
network groups for outbound connections. Fancier things could
be done, like weaker exclusion for inbound groups... but
simplicity is good and I don't believe more complexity is
currently needed.
Merge pull request #1545 from TheBlueMatt/diffsendbuffer

Minor send buffer changes