SetReadDeadline sets the deadline for future Read calls and any currently-blocked Read call. A zero value for t means Read will not time out.
(t time.Time)
| 570 | // currently-blocked Read call. |
| 571 | // A zero value for t means Read will not time out. |
| 572 | func (c *Conn) SetReadDeadline(t time.Time) error { |
| 573 | c.rdeadline.setDeadline(t) |
| 574 | return nil |
| 575 | } |
| 576 | |
| 577 | // SetWriteDeadline sets the deadline for future Write calls and any |
| 578 | // currently-blocked Write call. |