arvidn
94e41538b6
fix SSL web-seed test
2015-07-16 00:44:03 -04:00
Arvid Norberg
3340bbbfb4
Merge pull request #32 from ssiloti/peer_connection_handle
...
peer_connection_handle
2015-07-14 22:51:34 -04:00
Arvid Norberg
5201fe952b
Merge pull request #35 from jpetso/master
...
Minor fixes to avoid warnings
2015-07-14 22:38:10 -04:00
Jakob Petsovits
08a6ba4161
Avoid a warning if BOOST_ASIO_DECL was defined but empty.
2015-07-14 21:08:57 -04:00
Jakob Petsovits
4853d0250f
Avoid a warning if _BSD_SOURCE is already defined.
...
As _BSD_SOURCE has been deprecated since glibc 2.20, also add
_DEFAULT_SOURCE to the definitions. Both can be any value as long
as they're defined, so in order to save two lines, just #undef
them instead of checking with #ifdef/#endif.
2015-07-14 21:07:05 -04:00
Jakob Petsovits
27fe9822ad
m_num_peers is a regular int, not long: print %d instead of %ld.
2015-07-14 17:49:12 -04:00
Jakob Petsovits
d138104c85
-Wno-c++11-extensions is a clang-specific option.
...
GCC doesn't have it, so don't enable it unless we specifically
know that clang is the compiler.
2015-07-14 17:47:21 -04:00
Mikhail Titov
2751d90368
Don't store 0.0.0.0 for i2p peers in resume data
2015-07-14 14:13:17 -05:00
Mikhail Titov
9c489e2291
Don't include yourip (0.0.0.0) in i2p handshake
2015-07-14 14:13:16 -05:00
Mikhail Titov
70a99e6f62
Don't attempt to resolve base64 destination for i2p tracker
2015-07-14 14:13:15 -05:00
Mikhail Titov
020f0816df
fixup! Don't break SAM connection if error occurs
...
Propagate i2p result code, related to #3
2015-07-14 14:13:14 -05:00
Mikhail Titov
3f2e660fcf
Wait for i2p acceptor before announcing
...
This somewhat closes #1 in an ugly way
2015-07-14 14:13:13 -05:00
Mikhail Titov
fda379729c
There is no need to escape self i2p ip in Base 64
2015-07-14 14:13:12 -05:00
Mikhail Titov
bfb3602634
Test compact i2p response
2015-07-14 14:13:11 -05:00
Mikhail Titov
df21a7e8ce
Use scrape & i2p bitset flags for request
2015-07-14 14:13:10 -05:00
Mikhail Titov
5d3938b39b
Parse compact response from I2P tracker
...
This fixes #2
2015-07-14 14:13:09 -05:00
Mikhail Titov
007a580207
Options to use lowercase base32 encoding without padding
2015-07-14 12:41:12 -05:00
Steven Siloti
d911ed456a
stub out disabled functions rather than removing them
2015-07-12 20:17:45 -07:00
arvidn
1d2727ad25
add appveyor.yml
2015-07-12 23:01:23 -04:00
Steven Siloti
825fd22c1e
cut down on the size of the peer_connection_handle interface
2015-07-12 16:31:29 -07:00
Steven Siloti
9bf1d6c5e9
peer_connection_handle
2015-07-12 14:40:03 -07:00
Arvid Norberg
d2f27903e8
Merge pull request #31 from aldenml/dht-log-roundtrip-time
...
Using the standard log method for round trip time in rcp_manager.
2015-07-12 13:26:12 -04:00
Alden Torres
761486ce43
Using PRId64 macro for portability.
2015-07-12 13:05:29 -04:00
Alden Torres
89f3b3bee3
Using the standard log method for round trip time in rcp_manager.
2015-07-12 12:59:38 -04:00
Arvid Norberg
3036bce311
Merge pull request #22 from aldenml/session-dht-api
...
Added dht_get_peers and dht_announce at session level
2015-07-12 12:35:50 -04:00
Alden Torres
922c5e898e
Moved 'allow_threading_guard guard' to the right place.
2015-07-12 11:05:06 -04:00
Arvid Norberg
6241958aee
Merge pull request #27 from Chocobo1/py2
...
Project cleanup
2015-07-12 10:58:30 -04:00
Alden Torres
73e5f795cb
Merge with master.
2015-07-12 10:37:16 -04:00
Alden Torres
3058cdb705
No need of function wrapping in python bindings for DHT get/put operations.
2015-07-12 10:37:16 -04:00
Alden Torres
a856ae6e9b
Added dht_get_peers and dht_announce at session level.
...
Refactored dht_put_item to dht_put_immutable_item in session_impl since the get operations are not overloaded (consistency).
Added allow_threading_guard to add_dht_node python binding.
Making dht_put_item in session returns a zeroed hash if TORRENT_DISABLE_DHT (avoid unnecessary calculation and it's more consistent).
Added missing DHT operations to the python binding.
Added missing allow_threading_guard to add_dht_node in the python binding.
2015-07-12 10:37:16 -04:00
Chocobo1
cf6a7edafd
Zero out ccache stats for every build
2015-07-12 14:24:01 +08:00
Chocobo1
aba9c8651d
Add .gitignore
2015-07-12 14:24:01 +08:00
Chocobo1
fdada81ce3
Remove execute permission (linux) for Jamfile
2015-07-12 14:24:01 +08:00
Chocobo1
a59d1d3240
Add/fix shebang in python scripts, add execute permission (linux), remove whitespace/tabs at end of line
2015-07-12 14:24:01 +08:00
arvidn
42638c3540
don't ignore errors from setup_listener()
2015-07-11 23:16:37 -04:00
arvidn
2739def57f
minor cleanups. use libtorrent typedefs for asio. failing to bind IPv6 UDP socket is no longer fatal. removed some redundant listen_failed_alerts
2015-07-11 23:01:27 -04:00
arvidn
ed8e4135b2
move include statement to correct place
2015-07-11 22:04:04 -04:00
arvidn
2ab445135a
only retry binding the socket to a new port if the last attempt failed with address-in-use. On other errors, give up immediately
2015-07-11 18:49:53 -04:00
Arvid Norberg
6bbabc0045
Merge pull request #18 from ssiloti/session_handle
...
create session_handle
2015-07-11 16:48:03 -04:00
Steven Siloti
189afdd5e3
add session_handle.hpp to Makefile.am
2015-07-11 11:17:28 -07:00
Steven Siloti
1d55bcba72
make session inherit from session_handle and remove wrapper functions
2015-07-11 11:17:28 -07:00
Steven Siloti
b072b0ca5f
create session_handle
...
The session_handle class exposes the same public interface to session_impl as
the session class. The difference being that session_handle does not own the
underlying session_impl so multiple session_handle instances can be created
and copied about as needed.
The intent is to chenge the plugin API to pass an instance of session_handle
instead of a pointer to session_impl. This change will be made in a separate
patch.
To maintain ABI compatibilty, the type signature of session was not changed.
The relevent functions have been modified to forward to session_handle and
all enums have been left in session.
2015-07-11 11:17:28 -07:00
arvidn
2b05b1c85c
fix cppcheck warnings
2015-07-11 10:36:13 -04:00
Arvid Norberg
bb058aa081
Merge pull request #28 from Chocobo1/fix
...
Fix warnings found by cppcheck
2015-07-11 10:22:53 -04:00
Chocobo1
b743ef44e9
Pass std::string directly
2015-07-11 15:49:47 +08:00
Chocobo1
e8a02b85b8
Remove duplicate
2015-07-11 15:45:18 +08:00
Chocobo1
b5486fb6ce
Add parentheses
2015-07-11 15:23:55 +08:00
Chocobo1
c69e8805e9
Fix resource leak
2015-07-11 15:12:55 +08:00
Arvid Norberg
bbe51268d3
Merge pull request #23 from Chocobo1/igd_version
...
Add support for IGD version 2
2015-07-10 19:20:51 -04:00
Chocobo1
329d797342
Add test case for igd_version
2015-07-09 20:11:24 +08:00