2
0
mirror of synced 2025-02-24 14:48:27 +00:00
torrent/peer_protocol/reqspec.go

12 lines
203 B
Go
Raw Normal View History

2018-07-12 09:16:17 +10:00
package peer_protocol
import "fmt"
2018-07-12 09:16:17 +10:00
type RequestSpec struct {
Index, Begin, Length Integer
}
func (me RequestSpec) String() string {
return fmt.Sprintf("{%d %d %d}", me.Index, me.Begin, me.Length)
}