echo

package
v0.0.0-...-a9c1169 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RoundTrip

func RoundTrip(addr, msg string) (string, error)

RoundTrip sends msg to addr via a QUIC datagram. It returns the value of the first datagram received from the remote host or an error. For testing purposes, this function explicitly skips TLS cert verification. Do not use this in production.

func Serve

func Serve(addr string) error

Serve implements a rudimentary QUIC datagram echo server. It listens on addr via QUIC, accepts and echoes back datagrams received.

Types

This section is empty.

Jump to

Keyboard shortcuts

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