YTSFlix_Go/vendor/github.com/anacrolix/go-libutp/deadline.go

12 lines
299 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package utp
import "net"
type errDeadlineExceeded struct{}
var _ net.Error = errDeadlineExceeded{}
func (errDeadlineExceeded) Error() string { return "deadline exceeded" }
func (errDeadlineExceeded) Temporary() bool { return false }
func (errDeadlineExceeded) Timeout() bool { return true }