]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Comment on tracker.AnnounceRequest.Event
authorMatt Joiner <anacrolix@gmail.com>
Sun, 22 May 2016 12:42:37 +0000 (22:42 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 22 May 2016 12:42:37 +0000 (22:42 +1000)
tracker/tracker.go

index c57d8052700a96642d8e78b0de8324a38788bd6c..ed8c42d80009426658d1f2dcfcdde8cc53240fc7 100644 (file)
@@ -13,11 +13,13 @@ type AnnounceRequest struct {
        Downloaded int64
        Left       uint64
        Uploaded   int64
-       Event      AnnounceEvent
-       IPAddress  int32
-       Key        int32
-       NumWant    int32 // How many peer addresses are desired. -1 for default.
-       Port       uint16
+       // Apparently this is optional. None can be used for announces done at
+       // regular intervals.
+       Event     AnnounceEvent
+       IPAddress int32
+       Key       int32
+       NumWant   int32 // How many peer addresses are desired. -1 for default.
+       Port      uint16
 } // 82 bytes
 
 type AnnounceResponse struct {