MCPcopy Create free account
hub / github.com/encodeous/nylon / SetReadDeadline

Method SetReadDeadline

polyamide/tun/netstack/tun.go:473–476  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

471}
472
473func (pc *PingConn) SetReadDeadline(t time.Time) error {
474 pc.deadline.Reset(time.Until(t))
475 return nil
476}
477
478var (
479 errNoSuchHost = errors.New("no such host")

Callers 2

SetDeadlineMethod · 0.95
mainFunction · 0.45

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected