mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-29 23:21:36 +00:00
21 lines
290 B
Go
21 lines
290 B
Go
|
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()
|
||
|
}
|