Commit Graph

7702 Commits

Author SHA1 Message Date
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
Chocobo1 70fa9098a8 Fix error when building test_file_progress, missed in e2784df 2015-07-09 20:11:23 +08:00
Chocobo1 f92df7f782 Add support for IGD version 2 2015-07-09 20:11:23 +08:00
arvidn 82bb923096 fix python typo 2015-07-08 00:05:13 -04:00
arvidn c5614b691f export file_progress class when building unit tests. fix to web_server.py (used for unit tests) 2015-07-07 23:46:33 -04:00
Arvid Norberg b472299524 Merge pull request #21 from john-peterson/build2
hike required windows version to vista
2015-07-07 22:39:08 -04:00
Arvid Norberg f231ab4626 Merge pull request #24 from Chocobo1/travis
Switch to container-based builds
2015-07-07 19:38:24 -04:00
Chocobo1 a4777f6a86 Switch to travis container-based builds 2015-07-07 19:20:54 +08:00
John Sebastian Peterson 5a2dc432b1 remove windows version from code file
because it should be in the build files
2015-07-07 07:50:28 +02:00
Arvid Norberg d756969e90 Merge pull request #20 from john-peterson/rt3
fix hide cx keyword from winrt
2015-07-06 17:44:35 -04:00
arvidn 0bf1274b26 attempt to make travis not kill GCC 2015-07-06 17:33:17 -04:00
John Sebastian Peterson 12b30074e5 hike required windows version to vista
because xp has faded into the sunset
2015-07-06 06:53:48 +02:00
arvidn 1c708cca28 fix build 2015-07-05 21:41:53 -04:00
John Sebastian Peterson 9a5e3465d2 fix hide cx keyword from winrt
forgot to hide it in the source file
2015-07-06 03:11:41 +02:00
arvidn 78399f7968 shave off some includes in torrent.cpp 2015-07-05 19:32:13 -04:00
arvidn a63cfd2a95 improve logging (specifically don't emit bandwidth limiter logs when it's disabled) 2015-07-05 18:44:02 -04:00
arvidn 3b3a23a87a whitespace 2015-07-05 18:33:47 -04:00
Arvid Norberg 41eff1801e Merge pull request #13 from aldenml/more-dht-api
Added dht_get_peers and dht_announce at session_impl level.
2015-07-04 10:08:14 -04:00
Arvid Norberg bf20af1e05 Merge pull request #19 from john-peterson/rt2
support winrt
2015-07-04 10:06:30 -04:00
John Sebastian Peterson cc67c60938 hide cx keyword from winrt
instead of a hacky undef that break the keyword
2015-07-04 06:04:06 +02:00
John Sebastian Peterson bb25acd661 use a better windows.foundation.collections.h(462) conflict fix 2015-07-04 05:59:38 +02:00
Alden Torres e7ee3590fa Simplified dht_get_peers_reply_alert memory handling to work with only one allocation and return all peers at once. 2015-07-03 22:59:44 -04:00
John Sebastian Peterson 30142e35ac conform crypt api detection to coding standard 2015-07-04 01:42:33 +02:00
Alden Torres acc130833a Better handling of memory layout and use of detail io functions (thanks to @arvidn comments). 2015-07-02 21:35:59 -04:00
John Sebastian Peterson e7caa2d20f fix winrt compile error in windows.foundation.collections.h(428) 2015-07-02 09:58:17 +02:00
John Sebastian Peterson 7f160e42a5 fix c++/cx interface name conflict in alerts 2015-07-02 09:58:12 +02:00
John Sebastian Peterson 43c1de33b4 use cryptgenrandom successor in winrt 2015-07-02 09:55:35 +02:00
John Sebastian Peterson 2bbb238b4b use getfileattributes successor to support winrt 2015-07-02 09:55:34 +02:00
John Sebastian Peterson cc8a77b363 use createsemaphore and waitforsingleobject successor to support winrt 2015-07-02 09:55:33 +02:00
John Sebastian Peterson 02cee0e96e add winrt detection 2015-07-02 09:55:29 +02:00
Alden Torres c89f89511b Forgot to add the very important alloc offset. 2015-07-01 15:30:09 -04:00
Alden Torres f772675d95 Removed uTP implied port logic from dht_announce. 2015-07-01 15:30:09 -04:00
Alden Torres d9246d12c4 Re-implemented dht_get_peers_reply_alert using the stack_allocator for peers vector storage. 2015-07-01 15:30:09 -04:00
Alden Torres cbba63ce94 Created new alert category for pure DHT operations. 2015-07-01 15:30:08 -04:00
Alden Torres fcac7140f8 Added dht_get_peers and dht_announce at session_impl level. 2015-07-01 15:30:08 -04:00