// SetDeadline the read and write deadlines associated with the connection.
546359
func (conn *WebsocketConnection) SetDeadline(t time.Time) error {
	if err := conn.ws.SetReadDeadline(t); err != nil {
		return err
	}
	return conn.ws.SetWriteDeadline(t)
}
1040617
func (l *Listener) SetDeadline(t time.Time) error {
	if !l.ok() {
		return syscall.EINVAL
	}
	l.deadlineMutex.Lock()
	defer l.deadlineMutex.Unlock()
	l.deadline = t
	return nil
}
605846
func (p *MockPeer) SetWriteDeadline(t time.Time) error {
	if t.IsZero() {
		p.writeDeadline = nil
		return nil
	}

	duration := time.Until(t)
	p.writeDeadline = time.After(duration)

	return nil
}
165254
func (d *deadlineTimer) SetReadDeadline(t time.Time) error {
	d.mu.Lock()
	d.setDeadline(&d.readCancelCh, &d.readTimer, t)
	d.mu.Unlock()
	return nil
}
1028110
func (c *Conn) SetWriteDeadline(t time.Time) error {
	return c.opError(opSet, c.fd.SetDeadline(t, writeDeadline))
}
1282221
func (con *Connection) SetDeadline(t time.Time) error {
	return con.connection.SetDeadline(t)
}
38526
func (r *FilteredConn) SetDeadline(t time.Time) error {
	r.SetReadDeadline(t)
	return r.SetWriteDeadline(t)
}
998040
func (s *SurveyorSocket) SetDeadline(d time.Duration) error {
	return s.sock.SetOption(mangos.OptionSurveyTime, d)
}
41021
func (m *MockConn) SetDeadline(t time.Time) error {
	m.Called(t)
	return m.DeadlineError
}
619893
func (r *FilteredConn) SetReadDeadline(t time.Time) error {
	r.deadline.Store(t)
	return nil
}
1043349
func (con *Connection) SetWriteDeadline(t time.Time) error {
	return con.connection.SetWriteDeadline(t)
}
693975
func (bufc *bufConn) SetReadDeadline(t time.Time) error {
	return bufc.conn.SetReadDeadline(t)
}
717342
func (p *packetConn) SetReadDeadline(t time.Time) error {
	return p.s.SetReadDeadline(t)
}
836347
func (bufc *bufConn) SetDeadline(t time.Time) error {
	return bufc.conn.SetDeadline(t)
}
436002
func (c *Conn) SetDeadline(t time.Time) error {
	return c.opError(opSet, c.fd.SetDeadline(t, deadline))
}
696547
func (c *conn) SetReadDeadline(t time.Time) error {
	return c.rwc.SetReadDeadline(t)
}
471663
func (c *conn) SetDeadline(t time.Time) error {
	return c.rwc.SetDeadline(t)
}