aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-demo-yggdrasil/yggconn/stream.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dendrite-demo-yggdrasil/yggconn/stream.go')
-rw-r--r--cmd/dendrite-demo-yggdrasil/yggconn/stream.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmd/dendrite-demo-yggdrasil/yggconn/stream.go b/cmd/dendrite-demo-yggdrasil/yggconn/stream.go
new file mode 100644
index 00000000..dac7447e
--- /dev/null
+++ b/cmd/dendrite-demo-yggdrasil/yggconn/stream.go
@@ -0,0 +1,20 @@
+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()
+}