mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 05:13:11 -06:00
33 lines
524 B
Go
33 lines
524 B
Go
package yggconn
|
|
|
|
import (
|
|
"github.com/libp2p/go-yamux"
|
|
)
|
|
|
|
type stream struct {
|
|
*yamux.Stream
|
|
//conn net.Conn
|
|
}
|
|
|
|
/*
|
|
func (c *stream) LocalAddr() net.Addr {
|
|
return c.LocalAddr()
|
|
}
|
|
|
|
func (c *stream) RemoteAddr() net.Addr {
|
|
return c.conn.RemoteAddr()
|
|
}
|
|
|
|
func (c *stream) SetDeadline(t time.Time) error {
|
|
return c.conn.SetDeadline(t)
|
|
}
|
|
|
|
func (c *stream) SetReadDeadline(t time.Time) error {
|
|
return c.conn.SetReadDeadline(t)
|
|
}
|
|
|
|
func (c *stream) SetWriteDeadline(t time.Time) error {
|
|
return c.conn.SetWriteDeadline(t)
|
|
}
|
|
*/
|