c2s

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchivalData

type ArchivalData struct {
	// The server and client IP are here as well as in the containing struct
	// because happy eyeballs means that we may have a IPv4 control connection
	// causing a IPv6 connection to the test port or vice versa.
	ServerIP   string
	ServerPort int
	ClientIP   string
	ClientPort int

	// This is the only field that is really required.
	UUID string

	// These fields are here to enable analyses that don't require joining with tcp-info data.
	StartTime          time.Time
	EndTime            time.Time
	MeanThroughputMbps float64

	Error string `json:",omitempty"`
}

ArchivalData is the data saved by the C2S test. If a researcher wants deeper data, then they should use the UUID to get deeper data from tcp-info.

func ManageTest

func ManageTest(ctx context.Context, controlConn protocol.Connection, s ndt.Server) (record *ArchivalData, err error)

ManageTest manages the c2s test lifecycle.

Jump to

Keyboard shortcuts

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