FedP2P/web_seed.go

41 lines
603 B
Go
Raw Normal View History

2020-05-30 15:52:27 +08:00
package torrent
import (
"net/http"
)
type webSeed struct {
peer *peer
httpClient *http.Client
2020-05-31 11:09:56 +08:00
url string
}
2020-05-31 11:22:36 +08:00
func (ws *webSeed) PostCancel(r request) {
2020-05-31 11:09:56 +08:00
panic("implement me")
2020-05-30 15:52:27 +08:00
}
2020-05-31 11:22:36 +08:00
func (ws *webSeed) WriteInterested(interested bool) bool {
2020-05-30 15:52:27 +08:00
return true
}
2020-05-31 11:22:36 +08:00
func (ws *webSeed) Cancel(r request) bool {
2020-05-30 15:52:27 +08:00
panic("implement me")
}
2020-05-31 11:22:36 +08:00
func (ws *webSeed) Request(r request) bool {
2020-05-30 15:52:27 +08:00
panic("implement me")
}
2020-05-31 11:22:36 +08:00
func (ws *webSeed) ConnectionFlags() string {
2020-05-30 15:52:27 +08:00
return "WS"
}
2020-05-31 11:22:36 +08:00
func (ws *webSeed) Drop() {
2020-05-30 15:52:27 +08:00
}
2020-05-31 11:22:36 +08:00
func (ws *webSeed) UpdateRequests() {
2020-05-30 15:52:27 +08:00
ws.peer.doRequestState()
}
2020-05-31 11:09:56 +08:00
2020-05-31 11:22:36 +08:00
func (ws *webSeed) Close() {}