mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 21:33:19 -06:00
34 lines
553 B
Go
34 lines
553 B
Go
package yggconn
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
|
|
"github.com/alecthomas/multiplex"
|
|
)
|
|
|
|
type channel struct {
|
|
*multiplex.Channel
|
|
conn net.Conn
|
|
}
|
|
|
|
func (c *channel) LocalAddr() net.Addr {
|
|
return c.conn.LocalAddr()
|
|
}
|
|
|
|
func (c *channel) RemoteAddr() net.Addr {
|
|
return c.conn.RemoteAddr()
|
|
}
|
|
|
|
func (c *channel) SetDeadline(t time.Time) error {
|
|
return c.conn.SetDeadline(t)
|
|
}
|
|
|
|
func (c *channel) SetReadDeadline(t time.Time) error {
|
|
return c.conn.SetReadDeadline(t)
|
|
}
|
|
|
|
func (c *channel) SetWriteDeadline(t time.Time) error {
|
|
return c.conn.SetWriteDeadline(t)
|
|
}
|