torrent/web_seed.go

34 lines
484 B
Go
Raw Normal View History

2020-05-30 07:52:27 +00:00
package torrent
import (
"net/http"
)
type webSeed struct {
peer *peer
httpClient *http.Client
}
func (ws *webSeed) writeInterested(interested bool) bool {
return true
}
func (ws *webSeed) cancel(r request) bool {
panic("implement me")
}
func (ws *webSeed) request(r request) bool {
panic("implement me")
}
func (ws *webSeed) connectionFlags() string {
return "WS"
}
func (ws *webSeed) drop() {
}
func (ws *webSeed) updateRequests() {
ws.peer.doRequestState()
}