0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-14 22:43:51 +01:00
dendrite/cmd/dendrite-demo-yggdrasil/yggconn/stream.go

21 lines
290 B
Go
Raw Normal View History

package yggconn
import (
"net"
"github.com/lucas-clemente/quic-go"
)
type QUICStream struct {
quic.Stream
session quic.Session
}
func (s QUICStream) LocalAddr() net.Addr {
return s.session.LocalAddr()
}
func (s QUICStream) RemoteAddr() net.Addr {
return s.session.RemoteAddr()
}