Commit Graph

1508 Commits

Author SHA1 Message Date
Jari Sundell 946dc54f9b Fix libtorrent links in README.md
Updated links to point to the GitHub repository for libtorrent.
2025-10-02 16:31:53 +09:00
Jari Sundell ea2347734b Added network.block.outgoing. 2025-09-23 17:56:51 +09:00
Jari Sundell 5206e6cb88 Moved various socket options to NetworkConfig. 2025-09-22 06:01:18 +09:00
Jari Sundell 48f82c17c2 Remove deprecated no-target flags for commands. 2025-09-20 17:27:26 +09:00
rakshasa 675625255d Check if target is null in xmlrpc_to_object(). 2025-09-20 09:22:56 +02:00
Jari Sundell 658e9f7578 Use simplified fd_accept(). 2025-09-18 17:40:56 +09:00
Jari Sundell e7a80c7b18 Remove deprecated rak::socket_address. 2025-09-17 21:44:54 +09:00
Jari Sundell 677f8f45c8 Improved listen/dht port handling and added 'dht.override_port.set' command. 2025-09-13 17:51:04 +09:00
Jari Sundell ba1ba3096a Added NetworkConfig. 2025-09-12 06:09:24 +09:00
Jari Sundell 65906a033a Preparing 0.16.0 release. v0.16.0 2025-09-05 18:32:24 +09:00
rakshasa dd5e0df05c Fixed HttpGet close call. 2025-09-04 13:11:56 +02:00
Bryant Eadon 00ef7d4be2 cleanup of personal information
Given the change to the README I thought it might be a good idea to also update the copyright notices which had an address too.
2025-09-02 20:10:38 +02:00
Jari Sundell e64f9fe324 Include torrent/common.h header. 2025-09-01 20:46:18 +09:00
Jari Sundell 9d3f6645be Fix formatting and capitalization in README.md 2025-09-01 16:45:24 +09:00
Jari Sundell 285827e611 Revise README structure and donation information
Updated sections in README for clarity and formatting.
2025-09-01 09:42:18 +02:00
Bryant Eadon 7fa1166baa README combined
Combined README files to reduce clutter.  However, the build instructions are incomplete ... I've started by modifying these so a build will complete using the instructions once I get a closer look at libtorrent ... additions welcome.
2025-09-01 09:42:18 +02:00
Bryant Eadon 43ba43252e Delete uused file
minor cleanup.
2025-09-01 09:42:18 +02:00
Bryant Eadon 207375c0cc Update README.md
proposing a new message for the release download.  to draw attention to the github repo, instead of the archive.
2025-08-31 12:47:12 +02:00
PRESFIL 4a5bc86643 doc(lua): More examples for insert_lua_method 2025-08-26 20:11:17 +02:00
PRESFIL 1039497a1a feat(lua): Extend insert_lua_method's func_name's arguments
Allows short form with number of arguments and long flexible form with table:

```lua
rtorrent.insert_lua_method('d.watch_handler', 'watch_handler', { '$argument.0=' })
rtorrent.insert_lua_method('d.watch_handler', 'watch_handler', { 0 })
rtorrent.insert_lua_method('d.watch_handler', 'watch_handler', { [1] = 0 })
rtorrent.insert_lua_method('d.watch_handler', 'watch_handler', 1)
rtorrent.insert_lua_method('d.watch_handler', 'watch_handler', 0)
```

Also, there are way to pass no arguments at all:

```lua
rtorrent.insert_lua_method('d.watch_handler', 'watch_handler')
```

Type checking added.
2025-08-26 20:11:17 +02:00
PRESFIL 36a39e91c8 doc(lua): insert_lua_method: Document, that target always passed 2025-08-26 20:11:17 +02:00
Jari Sundell d35a8d68e6 Fixed uninitialized rpc slots when SCGI is not used. 2025-08-25 15:56:15 +09:00
Jari Sundell bb1cdfc0e7 Fixed DHT bind address and converted to using sockaddr. 2025-08-23 02:54:54 +09:00
PRESFIL b0c68aa398 doc(lua): Example: Remove <const> for Lua 5.3 compatibility 2025-08-07 11:03:58 +02:00
PRESFIL 1492d39a3a feat(lua): Make LUA_DATADIR option 2025-08-07 11:03:58 +02:00
PRESFIL 8dcf2bc609 chore(lua): Use PACKAGE_DATADIR and AM_CPPFLAGS 2025-08-07 11:03:58 +02:00
PRESFIL 7022722c64 chore(lua): Make LUA_DATADIR instead of PACKAGE_DATADIR 2025-08-07 11:03:58 +02:00
PRESFIL 2829a73d8b chore(lua): Make AC_DEFINE_UNQUOTED for PACKAGE_DATADIR 2025-08-07 11:03:58 +02:00
PRESFIL 43c36db5fc chore(lua): Add empty newlines for code readability 2025-08-07 11:03:58 +02:00
PRESFIL 9ed8fe8fd8 doc(lua): Add example Lua configuration
Additional step to test in development (non-packaged) mode:

- In packaged mode, rtorrent knows where to search rtorrent.lua, but in
  project mode, rtorrent.lua located in a non-standard location.
  Therefore run rtorrent with following environment variabler set:

  LUA_PATH=<full path to rtorrent project dir>/lua/?.lua
2025-08-07 11:03:58 +02:00
PRESFIL 95cc070ecc feat(lua): Add insert_lua_method for lua-callbacks
Updated @kannibalox's method to pass lua-functions as rtorrent's methods.
2025-08-07 11:03:58 +02:00
PRESFIL d43d08404a feat(lua): Some aliases for Target-commands 2025-08-07 11:03:58 +02:00
PRESFIL c92becbb7c feat(lua): Replace Autocall with Target-object, Autocall_config -> Autocall
Deep-copy `__namestack` decouples all instances of Autocall, previously it
worked as singleton. This allows to store call-chains as variables, aliases.

Target-object allows to avoid duplication of the target-parameter as required
with Autocall by storing them as variables.

Autocall_config renamed to Autocall for brevity.
2025-08-07 11:03:58 +02:00
PRESFIL 20887b1ccb fix(lua): print= shadowed by native Lua print()
Trying `rc.print()` causes redirection to native global Lua `print()`, which
prints to stdout. I don't see any proc of shor-circuiting `autocall_config`
with global environment `_G`.
2025-08-07 11:03:58 +02:00
PRESFIL 3bd111e498 feat(lua): Add autocall_config assignment semantic 2025-08-07 11:03:58 +02:00
PRESFIL f8ec1ca95e fix(lua): Make rtorrent.lua accessible at start 2025-08-07 11:03:58 +02:00
PRESFIL d9976af767 chore(rpc/parse.cc): Fix typo 2025-08-07 11:03:58 +02:00
PRESFIL c649e49a42 fix(lua): Treat VALUE always as integer
rtorrent doesn't have floating point data type
2025-08-07 11:03:58 +02:00
PRESFIL 9b0d74bd68 fix(lua): Execution of commands with empty target 2025-08-07 11:03:58 +02:00
PRESFIL 09dd1ce9c8 fix(lua): Handling of LUA_TNIL 2025-08-07 11:03:58 +02:00
PRESFIL eb45508ab9 chore(lua): Remove unused lua_rtorrent_call() local function 2025-08-07 11:03:58 +02:00
PRESFIL a1ff6f5710 fix(lua): require(rtorrent) cause infinite loop
- missing `pos = end + 1` pos caused infinite loop

- there was no processing of the last element after the last ';', i.e. it was
  assumed that `lua_path` always has ';' in the last character
2025-08-07 11:03:58 +02:00
rakshasa 756e3bd5ae Invert color of focus ui element. 2025-08-05 08:56:22 +02:00
rakshasa ce97bf583d Fixed formating. 2025-08-04 09:52:27 +02:00
rakshasa dd8281204f Update common.m4. 2025-08-04 09:52:27 +02:00
rakshasa 420f03b40b Fixed input key bindings. 2025-08-04 09:52:27 +02:00
mmmsalmon 9ac43c2b40 remove comment 2025-08-04 09:52:27 +02:00
mmmsalmon 25448320aa add vi/emacs keybind for stopping/removing torrent from download list 2025-08-04 09:52:27 +02:00
rakshasa 788442de6a Added test for xmlrpc string reflection. 2025-08-02 15:02:25 +02:00
rakshasa 4492715737 Strict checking of d.views push_back arguments. 2025-08-02 15:02:25 +02:00