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.