- 06 Mar, 2015 1 commit
-
-
Wladimir J. van der Laan authored
We've chosen to htons/ntohs explicitly on reading and writing (I do not know why). But as READWRITE already does an endian swap on big endian, this means the port number gets switched around, which was what we were trying to avoid in the first place. So to make this compatible, serialize it as FLATDATA.
-
- 19 Dec, 2014 1 commit
-
-
sandakersmann authored
Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
-
- 16 Dec, 2014 1 commit
-
-
Michael Ford authored
-
- 02 Dec, 2014 1 commit
-
-
Wladimir J. van der Laan authored
This avoids connecting to them again too soon in ThreadOpenConnections. Make an exception for connection failures to the proxy as these shouldn't affect the status of specific nodes.
-
- 29 Oct, 2014 1 commit
-
-
Matt Corallo authored
-
- 06 Oct, 2014 1 commit
-
-
Philip Kaufmann authored
- update help message text - simplify code in init to check for -timeout
-
- 02 Sep, 2014 1 commit
-
-
Pieter Wuille authored
-
- 01 Sep, 2014 1 commit
-
-
Pieter Wuille authored
-
- 31 Aug, 2014 3 commits
-
-
Pieter Wuille authored
-
Kamil Domanski authored
Thanks to Pieter Wuille for most of the work on this commit. I did not fixup the overhaul commit, because a rebase conflicted with "remove fields of ser_streamplaceholder". I prefer not to risk making a mistake while resolving it.
-
Kamil Domanski authored
The implementation of each class' serialization/deserialization is no longer passed within a macro. The implementation now lies within a template of form: template <typename T, typename Stream, typename Operation> inline static size_t SerializationOp(T thisPtr, Stream& s, Operation ser_action, int nType, int nVersion) { size_t nSerSize = 0; /* CODE */ return nSerSize; } In cases when codepath should depend on whether or not we are just deserializing (old fGetSize, fWrite, fRead flags) an additional clause can be used: bool fRead = boost::is_same<Operation, CSerActionUnserialize>(); The IMPLEMENT_SERIALIZE macro will now be a freestanding clause added within class' body (similiar to Qt's Q_OBJECT) to implement GetSerializeSize, Serialize and Unserialize. These are now wrappers around the "SerializationOp" template.
-
- 28 Aug, 2014 1 commit
-
-
Philip Kaufmann authored
- ensures a consistent usage in header files - also add a blank line after the copyright header where missing - also remove orphan new-lines at the end of some files
-
- 20 Aug, 2014 1 commit
-
-
Wladimir J. van der Laan authored
All unused.
-
- 30 Jul, 2014 1 commit
-
-
Wladimir J. van der Laan authored
Returns the network name for an Network enum.
-
- 17 Jul, 2014 2 commits
-
-
Philip Kaufmann authored
-
Wladimir J. van der Laan authored
Simpler alternative to #4348. The current setup with closesocket() is strange. It poses as a compatibility wrapper but adds functionality. Rename it and make it a documented utility function in netbase. Code movement only, zero effect on the functionality.
-
- 07 Jul, 2014 1 commit
-
-
Philip Kaufmann authored
- now we support SOCKS5 only
-
- 23 Jun, 2014 1 commit
-
-
Cory Fields authored
bitcoin-config.h moved, but the old file is likely to still exist when reconfiguring or switching branches. This would've caused files to not rebuild correctly, and other strange problems. Make the path explicit so that the old one cannot be found. Core libs use config/bitcoin-config.h. Libs (like crypto) which don't want access to bitcoin's headers continue to use -Iconfig and #include bitcoin-config.h.
-
- 31 May, 2014 1 commit
-
-
Philip Kaufmann authored
-
- 23 May, 2014 1 commit
-
-
Wladimir J. van der Laan authored
Log the name of the error as well as the error code if a network problem happens. This makes network troubleshooting more convenient. Use thread-safe strerror_r and the WIN32 equivalent FormatMessage.
-
- 20 May, 2014 1 commit
-
-
Kamil Domanski authored
-
- 09 May, 2014 1 commit
-
-
Wladimir J. van der Laan authored
-
- 01 May, 2014 1 commit
-
-
Wladimir J. van der Laan authored
The year is 2014. All supported operating systems have IPv6 support, most certainly at build time (this doesn't mean that IPv6 is configured, of course). If noone is exercising the functionality to disable it, that means it doesn't get tested, and IMO it's better to get rid of it. (it's also not used consistently in RPC/boost and Net code...)
-
- 10 Nov, 2013 1 commit
-
-
Brandon Dahler authored
Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
-
- 20 Oct, 2013 1 commit
-
-
super3 authored
-
- 03 Oct, 2013 1 commit
-
-
Philip Kaufmann authored
-
- 06 Sep, 2013 1 commit
-
-
Cory Fields authored
-
- 07 Oct, 2012 1 commit
-
-
Pieter Wuille authored
I2P apparently needs 256 bits to store a fully routable address. Garlicat requires a centralized lookup service to map the 80-bit addresses to fully routable ones (as far as I understood), so that's not really usable in our situation. To support I2P routing and peer exchange for it, another solution is needed. This will most likely imply a network protocol change, and extension of the 'addr' message.
-
- 04 Oct, 2012 1 commit
-
-
Philip Kaufmann authored
- fix #1560 by properly locking proxy related data-structures - update GetProxy() and introduce GetNameProxy() to be able to use a thread-safe local copy from proxyInfo and nameproxyInfo - update usage of GetProxy() all over the source to match the new behaviour, as it now fills a full proxyType object - rename GetNameProxy() into HaveNameProxy() to be more clear
-
- 12 Sep, 2012 1 commit
-
-
Philip Kaufmann authored
- I checked every occurance of strprintf() in the code and used %u, where unsigned vars are used - the change to GetByte() was made, as ip is an unsigned char
-
- 01 Aug, 2012 1 commit
-
-
Luke Dashjr authored
-
- 22 Jun, 2012 2 commits
-
-
Pieter Wuille authored
Add support for Tor/I2P networks, and make code more readable.
-
Pieter Wuille authored
This commit adds support for .onion addresses (mapped into the IPv6 by using OnionCat's range and encoding), and the ability to connect to them via a SOCKS5 proxy.
-
- 14 Jun, 2012 1 commit
-
-
Pieter Wuille authored
Implement the following rules: * Interpret [X]:Y as host=X port=Y, if Y is an integer * Interpret X:Y as host=X port=Y, if Y is an integer and X contains no colon * Interpret X:Y as host=X:Y port=default otherwise
-
- 31 May, 2012 1 commit
-
-
Pieter Wuille authored
-
- 18 May, 2012 1 commit
-
-
Fordy authored
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.
-
- 13 May, 2012 1 commit
-
-
Ricardo M. Correia authored
This prevents an undefined operation in main.cpp, when shifting the hash value left by 32 bits. Shifting a signed int left into the sign bit is undefined in C++11.
-
- 11 May, 2012 3 commits
-
-
Pieter Wuille authored
-
Pieter Wuille authored
-
Pieter Wuille authored
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.
-