singleserving

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenPlain

func ListenPlain(direction string) (ndt.SingleMeasurementServer, error)

ListenPlain starts a single-serving server for plain NDT tests. When this method returns without error, it is safe for a client to connect to the server, as the server socket will be in "listening" mode. The returned server will not actually respond until ServeOnce() is called, but the connect() will not fail as long as ServeOnce is called soon ("soon" is defined by os-level timeouts) after this returns.

func ListenWS

func ListenWS(direction string) (ndt.SingleMeasurementServer, error)

ListenWS starts a single-serving unencrypted websocket server. When this method returns without error, it is safe for a client to connect to the server, as the server socket will be in "listening" mode. The returned server will not actually respond until ServeOnce() is called, but the connect() will not fail as long as ServeOnce is called soon ("soon" is defined by os-level timeouts) after this returns.

func ListenWSS

func ListenWSS(direction, certFile, keyFile string) (ndt.SingleMeasurementServer, error)

ListenWSS starts a single-serving encrypted websocket server. When this method returns without error, it is safe for a client to connect to the server, as the server socket will be in "listening" mode. The returned server will not actually respond until ServeOnce() is called, but the connect() will not fail as long as ServeOnce is called soon ("soon" is defined by os-level timeouts) after this returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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