]> Sergey Matveev's repositories - btrtrc.git/blobdiff - ut-holepunching.go
Synchronize holepunch connect messages with existing rendezvous
[btrtrc.git] / ut-holepunching.go
diff --git a/ut-holepunching.go b/ut-holepunching.go
new file mode 100644 (file)
index 0000000..08f0ac7
--- /dev/null
@@ -0,0 +1,11 @@
+package torrent
+
+import (
+       "github.com/anacrolix/chansync"
+)
+
+type utHolepunchRendezvous struct {
+       relays     map[*PeerConn]struct{}
+       gotConnect chansync.SetOnce
+       relayCond  chansync.BroadcastCond
+}