Charles Kerr
93ee8b8c49
#972 : Update to the 2008/05/29 snapshot of libnatpmp
2008-05-29 13:39:39 +00:00
Charles Kerr
eb02b3e494
#972 : merge upstream version of Jean Gressmann's JSON_parser
2008-05-29 03:24:26 +00:00
Charles Kerr
2c59589c6c
* When loading a torrent, warn if no announce URLs are found.
...
* When possible, use the torrent name in metainfo warning messages.
2008-05-29 00:38:31 +00:00
Charles Kerr
f61205e708
fix svn id property
2008-05-28 17:17:12 +00:00
Charles Kerr
e6070f04f2
remove more dead code
2008-05-28 16:56:38 +00:00
Charles Kerr
cd6ef35854
(libT) remove dead code
2008-05-28 16:52:31 +00:00
Charles Kerr
ad2146cc24
#972 (partial) Transmission fails to compile with Sun Studio due to funky C code
2008-05-28 13:03:34 +00:00
Charles Kerr
36223c112e
#971 : transmission can't create torrent with empty "Announce URL"
2008-05-27 21:55:57 +00:00
Charles Kerr
dce2c25fb1
possible fix for r5932/r5933 error reported by John_Clay.
2008-05-27 18:37:42 +00:00
Charles Kerr
70b395fb85
dead code removal.
2008-05-26 13:13:24 +00:00
Charles Kerr
f5400da1bb
(libT) shave a few bytes from tr_info and tr_torrent's memory footprints.
2008-05-26 12:52:38 +00:00
Charles Kerr
70fcc56beb
(libT) (1) shave a few bytes from tr_peer and tr_ratecontrol's footprints. (2) remove some dead code.
2008-05-26 12:14:35 +00:00
Charles Kerr
0ab37e45d5
(rpc)
...
1. fix #968 : 'transmission-remote -r' deletes all
2. fix error in escaping control characters when serializing tr_benc to JSON
3. fix small memory leak in rpc command parsing
2008-05-24 18:22:16 +00:00
Charles Kerr
7bfe7cc471
remove unused functions tr_torrentSetActiveCallback() and tr_torrentClearActiveCallback()
2008-05-23 20:33:54 +00:00
Charles Kerr
53d8574b11
* change tr_stat.activityDate's and tr_stat.startedDate's type to time_t, since that's how everyone uses them anyway
...
* add a little more documentation to tr_stat and tr_ctor in transmission.h
2008-05-23 20:04:41 +00:00
Charles Kerr
ba8a03024c
shave 16 bytes off sizeof(tr_peerIo)
2008-05-23 18:56:42 +00:00
Charles Kerr
e44f2b7829
possible fix for the stats error reported in http://forum.transmissionbt.com/viewtopic.php?t=4843 , but it's a strange bug.
2008-05-23 18:30:49 +00:00
Charles Kerr
d18fb68fbc
sine we now have two public ports (peer and rpc), rename "publicPort" as "peerPort"
2008-05-23 16:18:58 +00:00
Charles Kerr
f9e8b56816
add `hashString' to torrent-stat's response
2008-05-23 13:18:17 +00:00
Charles Kerr
0621c67c41
more cleanup work:
...
(1) kill the pointless "tr_tracker_stat" struct.
(2) kill the unused "tr_torrentRemoveSaved()" function.
(3) kill the redundant "nextManualAnnounceTime" variable.
(4) make the TR_ERROR_IS_* macros private.
2008-05-22 23:11:21 +00:00
Charles Kerr
26b5a16630
(libt) more janitorial work on cleaning up tr_session*() and tr_torrent*() functions: session stats, torrent count, and manual update.
2008-05-22 20:44:41 +00:00
Charles Kerr
9fdb8afdf0
(rpc) remove TR_RPC_TORRENT_CLOSING. formalize "torrent-list"'s response in the rpc spec.
2008-05-22 19:24:11 +00:00
Charles Kerr
dceabc5661
make tr_stat identical in transmission.h and rpc-spec.txt.
2008-05-22 16:59:51 +00:00
Charles Kerr
90e151cd4d
(rpc) make our generated JSON more human-readable.
2008-05-22 16:41:16 +00:00
Charles Kerr
7b209acc1b
more janitorial cleanup on the "tr_session*" namespace. Today's victim: tr_handle_status.
2008-05-22 12:31:47 +00:00
Charles Kerr
07ae5bf965
tr_base64_decode() now decodes both data with, and without, newlines. thanks to dm1024 for helping track this down.
2008-05-22 03:42:26 +00:00
Charles Kerr
4398943230
#934 : remove invalid tracker addresses
2008-05-21 20:56:12 +00:00
Charles Kerr
e406dcc2ab
rename tr_torrentClose() as tr_torrentFree() and make it private. change client code to use tr_torrentRemove() instead. This fixes the confusion between the two methods that led to #954
2008-05-21 17:14:58 +00:00
Charles Kerr
8b31bd54cb
(rpc) refresh our snapshot of Jean Gressmann's JSON parser
2008-05-21 14:19:49 +00:00
Charles Kerr
c7b9c8c043
( #954 ) rpc: add "torrent-remove" method. rename tr_torrentDelete() as tr_torrentRemove() for consistency with various parts of the code.
2008-05-20 23:58:59 +00:00
Charles Kerr
7beacb3032
(1) RPC "add-torrent" now lets clients embed base64-encoded metainfo directly into the request
...
(2) remove the RISON code; it didn't make the final cut
(3) add base64 encode/decode utilities and unit tests
2008-05-20 17:33:54 +00:00
Charles Kerr
77233ab16f
fix 20-byte memory leak every time we stopped a torrent. :/
2008-05-20 17:24:29 +00:00
Charles Kerr
d7f0e0fa1e
* better RPC handling of requests submitted via http POST
...
* plug a pair of minor memory leaks reported by valgrind.
2008-05-19 18:16:58 +00:00
Charles Kerr
4c82187933
possible fix for the crash in http://forum.transmissionbt.com/viewtopic.php?t=4847
2008-05-19 14:06:44 +00:00
Charles Kerr
9a2cdef770
fix compile error reported by BentMyWookie
2008-05-19 00:22:04 +00:00
Charles Kerr
dde9cb49f2
fix the cyclical header dependency, and fix a couple of warnings sniffed out by gcc 4.3
2008-05-19 00:12:31 +00:00
Charles Kerr
2c79888a93
RPC/IPC redesign
2008-05-18 16:44:30 +00:00
Charles Kerr
f0b7932b90
minor logging tweak
2008-05-15 22:08:43 +00:00
Charles Kerr
078ea29f37
add tr_strdup_printf()
2008-05-15 15:44:51 +00:00
Charles Kerr
bfd89b685d
more work on rpc. bug fixes, regression tests, and spec tweaks.
2008-05-13 17:31:09 +00:00
Charles Kerr
6aaa2fd39e
fix bug in the benc-to-json converter.
...
add rison-to-json converter so we can pass commands to transmission in a uri.
add unit tests for the new code.
2008-05-13 12:52:58 +00:00
Charles Kerr
17b9dc7462
make the request/response messages a little terser. add per-torrent speed limit toggles. rename ipc -> rpc.
2008-05-12 23:51:17 +00:00
Charles Kerr
911bce88c9
add benc-to-json conversion + unit tests.
2008-05-12 17:54:57 +00:00
Charles Kerr
be9427931a
ipc: add session accessor/mutators.
...
transmission.h: make the session API more consistent.
2008-05-12 16:33:17 +00:00
Charles Kerr
2186d852f1
json ipc: implement torrent-add, torrent-set-file, torrent-get-file
2008-05-12 13:05:06 +00:00
Charles Kerr
63b82714f8
partial implementation of json-ipc backend: torrent start/stop/close/verify/stat/info, as are getting & setting per-torrent peer limits, upload speeds, and download speeds. this is a work in progress.
2008-05-12 00:41:55 +00:00
Charles Kerr
6eb8c5132e
remove benc2php, since we're going to be using json now.
2008-05-11 23:13:50 +00:00
Charles Kerr
44d3d2e080
plug a small memory leak in the last patch
2008-05-11 22:55:15 +00:00
Charles Kerr
e607f26893
add json-to-benc parser
2008-05-11 22:42:53 +00:00
Charles Kerr
33839f77be
new utility for iterating through torrents: tr_torrentNext()
2008-05-10 00:19:00 +00:00