Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WebtransportConnsAccepted = expvar.NewInt("webtransport_conns_accepted") WebtransportConnsOpened = expvar.NewInt("webtransport_conns_opened") WebtransportConnsClosed = expvar.NewInt("webtransport_conns_closed") )
View Source
var CancelRead webtransport.StreamErrorCode = 3558
View Source
var CancelWrite webtransport.StreamErrorCode = 3559
View Source
var MaxIncomingStreams int64 = 1 << 60
2^60 == 1152921504606846976
View Source
var QUICConfig = &quic.Config{ EnableDatagrams: true, MaxIncomingStreams: MaxIncomingStreams, }
Functions ¶
Types ¶
type StreamConn ¶
type StreamConn struct { webtransport.Stream Session *webtransport.Session }
StreamsConn wraps webtransport.Stream into net.Conn
func (*StreamConn) Close ¶
func (sc *StreamConn) Close() error
Close calls CancelRead to avoid memory leak, see - https://github.com/quic-go/quic-go/issues/3558 - https://pkg.go.dev/github.com/quic-go/webtransport-go#Stream
func (*StreamConn) CloseRead ¶
func (sc *StreamConn) CloseRead() error
func (*StreamConn) CloseWrite ¶
func (sc *StreamConn) CloseWrite() error
func (*StreamConn) LocalAddr ¶
func (sc *StreamConn) LocalAddr() net.Addr
LocalAddr is required to impl net.Conn
func (*StreamConn) RemoteAddr ¶
func (sc *StreamConn) RemoteAddr() net.Addr
RemoteAddr is required to impl net.Conn
type Upgrader ¶ added in v0.5.24
type WebtransportSession ¶
type WebtransportSession struct {
*webtransport.Session
}
func (*WebtransportSession) Close ¶
func (s *WebtransportSession) Close() error
Click to show internal directories.
Click to hide internal directories.