func (c *IPConn) SetReadDeadline( time.Time) error - Answers of this kind are in the documentation golang.org/pkg/net/#IPConn.SetReadDeadline there is a reference that this is a implementation of the Conn interface. The Conn interface is described on the same page golang.org/pkg/net/#Conn - rekby
|
1 answer
SetReadDeadline(time) - sets the time upon the occurrence of which the work on data acquisition stops.
// SetReadDeadline sets the deadline for future Read calls.
// If the deadline is reached
// (see type Error) instead of blocking.
// A value for t means.
SetReadDeadline(t time.Time) error
SetReadDeadline sets the deadline for future calls Read . If the deadline is reached, Read will end with a timeout instead of blocking. A zero value for t means no timeout for Read .
|