summaryrefslogtreecommitdiff
path: root/ot_livesync.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-05 03:26:42 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-05 03:26:42 +0200
commita09609d94ed7f2cc8c5447f2c482abf5024b0ae5 (patch)
treecab76f4c46689d76db808018d3f591ddf2f84482 /ot_livesync.h
parent308e91a2fa45ad3714fbd39e6cacde464b0280a8 (diff)
Enable live syncing v6 peers
Diffstat (limited to 'ot_livesync.h')
-rw-r--r--ot_livesync.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ot_livesync.h b/ot_livesync.h
index d7490e5..41bfc2e 100644
--- a/ot_livesync.h
+++ b/ot_livesync.h
@@ -28,13 +28,19 @@
28 Each tracker instance accumulates announce requests until its buffer is 28 Each tracker instance accumulates announce requests until its buffer is
29 full or a timeout is reached. Then it broadcasts its live sync packer: 29 full or a timeout is reached. Then it broadcasts its live sync packer:
30 30
31 packet type SYNC_LIVE 31 packet type SYNC_LIVE4
32 [ 0x0008 0x14 info_hash 32 [ 0x0008 0x14 info_hash
33 0x001c 0x04 peer's ipv4 address 33 0x001c 0x04 peer's ipv4 address
34 0x0020 0x02 peer's port 34 0x0020 0x02 peer's port
35 0x0024 0x02 peer flags v1 ( SEEDING = 0x80, COMPLETE = 0x40, STOPPED = 0x20 ) 35 0x0024 0x02 peer flags v1 ( SEEDING = 0x80, COMPLETE = 0x40, STOPPED = 0x20 )
36 ]* 36 ]*
37 37
38 packet type SYNC_LIVE6
39 [ 0x0008 0x14 info_hash
40 0x001c 0x10 peer's ipv6 address
41 0x002c 0x02 peer's port
42 0x002e 0x02 peer flags v1 ( SEEDING = 0x80, COMPLETE = 0x40, STOPPED = 0x20 )
43 ]*
38*/ 44*/
39 45
40#ifdef WANT_SYNC_LIVE 46#ifdef WANT_SYNC_LIVE