func (c *IPConn) SetReadDeadline( time.Time) error 

1 answer 1

SetReadDeadline(time) - sets the time upon the occurrence of which the work on data acquisition stops.

Source: http://grokbase.com/


// 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 .

Source: https://golang.org/