quic-go: github.com/lucas-clemente/quic-go/integrationtests/tools/testserver Index | Files

package testserver

import "github.com/lucas-clemente/quic-go/integrationtests/tools/testserver"


Package Files



var (
    // PRData contains dataLen bytes of pseudo-random data.
    PRData = GeneratePRData(dataLen)
    // PRDataLong contains dataLenLong bytes of pseudo-random data.
    PRDataLong = GeneratePRData(dataLenLong)

func GeneratePRData Uses

func GeneratePRData(l int) []byte

See https://en.wikipedia.org/wiki/Lehmer_random_number_generator

func Port Uses

func Port() string

Port returns the UDP port of the QUIC server.

func StartQuicServer Uses

func StartQuicServer(versions []protocol.VersionNumber)

StartQuicServer starts a http3.Server. versions is a slice of supported QUIC versions. It may be nil, then all supported versions are used.

func StopQuicServer Uses

func StopQuicServer()

StopQuicServer stops the http3.Server.

Package testserver imports 11 packages (graph) and is imported by 2 packages. Updated 2019-09-19. Refresh now. Tools for package owners.