setWriteDeadline is used by upper layers to push write deadlines down to the underlying packet connection.
(t time.Time)
| 92 | // setWriteDeadline is used by upper layers to push write deadlines down to the |
| 93 | // underlying packet connection. |
| 94 | func (c *candidateBase) setWriteDeadline(t time.Time) error { |
| 95 | if c.conn == nil { |
| 96 | return nil |
| 97 | } |
| 98 | |
| 99 | return c.conn.SetWriteDeadline(t) |
| 100 | } |
| 101 | |
| 102 | // ID returns Candidate ID. |
| 103 | func (c *candidateBase) ID() string { |
no test coverage detected