tox_ngc_ft1_tool/README.md

66 lines
1.6 KiB
Markdown
Raw Normal View History

2023-01-16 23:25:23 +01:00
# Tool to send and receive files using Tox NGC FileTransfers
currently on prototype FT1
2023-01-17 16:06:20 +01:00
## Example
### sender (seeder)
2023-01-17 17:52:27 +01:00
`$ tox_ngc_ft1_tool -F sender.tox -G <ngc_chat_id> -a sha1_info -f file_to_transfer`
2023-01-17 16:06:20 +01:00
this will print this tools tox_id and the generated info_hash
### receivers (leechers)
2023-01-17 17:52:27 +01:00
`$ tox_ngc_ft1_tool -F sender.tox -G <ngc_chat_id> -a sha1_info -D <info_hash>`
2023-01-17 16:06:20 +01:00
this will first download the info using the info_hash and then all the file chunks listed in the info
while simultaneously resharing allready downloaded chunks and info (swarming)
2023-01-20 00:00:57 +01:00
to increase the amount of parallel chunk down/up loads, you can increase the value with the -I and -O option. the default for -I is 32 and for -O 16, which are relatively low numbers, which in practice can get you up to ~700KiB/s.
2023-01-17 16:06:20 +01:00
2023-01-16 23:25:23 +01:00
## Usage
```
$ tox_ngc_ft1_tool
~~~ HELP ~~~
meta:
-v version info
-V verbose
-h help
connectivity:
-G <chat_id>
-F profile.tox
-N <self_name> (defaults to 'tox_ngc_ft1_tool')
will print friend id at startup
will autoaccept any invite
if no -F given, will not save profile.
if profile exists load, otherwise create new
transfer variant:
-a id1/sha1_single/sha1_info/sha2_single/sha2_info
send:
-f send_this_file.zip
receive:
-d dump/everything/in/this/dir
-D <id/hash> (what to dl)
!!! ADVANCED !!!
tox:
-L disable local discovery
-U disable udp
-P proxy_host proxy_port
-p tox_port (bind tox to that port)
2023-01-17 15:45:48 +01:00
FT1:
--ft_ack_per_packet
--ft_init_retry_timeout_after
--ft_sending_resend_without_ack_after
--ft_sending_give_up_after
--ft_packet_window_size
2023-01-17 22:25:18 +01:00
transfer logic:
-I <max_incoming_transfers>
-O <max_outgoing_transfers>
2023-01-16 23:25:23 +01:00
```