quicutils

package
v0.0.0-...-0a2f12f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracer = qlog.NewTracer(func(p logging.Perspective, connID []byte) io.WriteCloser {
	filename := fmt.Sprintf("%v_%x.qlog", strings.ToLower(p.String()), connID)
	f, err := os.Create(filename)
	if err != nil {
		log.Error("Unable to create file for tracing -- tracing will be discarded", zap.Error(err))
		return discardWriter{io.Discard}
	}
	log.Debug("Creating qlog file", zap.String("qlogFile", filename))
	return f
})

Functions

func ReceiveControlMessage

func ReceiveControlMessage(stream quic.Stream, callBack types.ControlMessageCallback) (success bool, err error)

func SendControlMessage

func SendControlMessage(cm types.ControlMessage, stream quic.Stream) (success bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL