multicast

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const MethodGet0RTT = "GET_0RTT"

MethodGet0RTT allows a GET request to be sent using 0-RTT. Note that 0-RTT data doesn't provide replay protection.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.30.1

type Client struct {
	*http3.Client
	// contains filtered or unexported fields
}

type ConnPassTrough added in v0.30.1

type ConnPassTrough struct {
	*net.UDPConn
	DataWriteStream chan []byte
	DataReadStream  chan []byte
}

func (ConnPassTrough) Read added in v0.30.1

func (u ConnPassTrough) Read(b []byte) (int, error)

func (ConnPassTrough) ReadFrom added in v0.30.1

func (u ConnPassTrough) ReadFrom(b []byte) (int, net.Addr, error)

func (ConnPassTrough) ReadFromUDP added in v0.30.1

func (u ConnPassTrough) ReadFromUDP(b []byte) (int, net.Addr, error)

func (ConnPassTrough) ReadMsgUDP added in v0.30.1

func (u ConnPassTrough) ReadMsgUDP(b []byte, oob []byte) (n int, oobn int, flags int, addr *net.UDPAddr, err error)

func (ConnPassTrough) Write added in v0.30.1

func (u ConnPassTrough) Write(b []byte) (int, error)

func (ConnPassTrough) WriteMsgUDP added in v0.30.1

func (u ConnPassTrough) WriteMsgUDP(b []byte, oob []byte, addr *net.UDPAddr) (n int, oobn int, err error)

func (ConnPassTrough) WriteTo added in v0.30.1

func (u ConnPassTrough) WriteTo(b []byte, addr net.Addr) (int, error)

func (ConnPassTrough) WriteToUDP added in v0.30.1

func (u ConnPassTrough) WriteToUDP(b []byte, addr *net.UDPAddr) (int, error)

type MulticastServer added in v0.30.1

type MulticastServer struct {
	*http3.Server
	Multicast  *http.Server
	QuicConfig *quic.Config

	RetransmissionQueue *quic.RetransmissionQueue

	RemoteAddr net.Addr
	// contains filtered or unexported fields
}

Server is a mHTTP/3 Multicastserver.

func (*MulticastServer) ListenAndServeTLSKencastFolder added in v0.30.2

func (s *MulticastServer) ListenAndServeTLSKencastFolder(certFile, keyFile, addr, multiACKAddr string, kencastWriter *net.UDPConn, ifat *net.Interface, handler http.Handler, files chan string) error

ListenAndServeTLS listens on the UDP address s.Addr and calls s.Handler to handle HTTP/3 requests on incoming connections.

func (*MulticastServer) ListenAndServeTLSMultiFolder added in v0.30.1

func (s *MulticastServer) ListenAndServeTLSMultiFolder(certFile, keyFile, addr, multiACKAddr, multiAddr string, ifat *net.Interface, handler http.Handler, files chan string) error

ListenAndServeTLS listens on the UDP address s.Addr and calls s.Handler to handle HTTP/3 requests on incoming connections.

func (*MulticastServer) ServeFolder added in v0.30.1

func (s *MulticastServer) ServeFolder(conn *net.UDPConn, ackConn *net.UDPConn, folder chan string) error

Serve an existing UDP connection. It is possible to reuse the same connection for outgoing connections. Closing the server does not close the packet conn.

type PassThru added in v0.30.1

type PassThru struct {
	Reader io.Reader
	Writer io.Writer
	// contains filtered or unexported fields
}

func (*PassThru) Read added in v0.30.1

func (pt *PassThru) Read(p []byte) (int, error)

func (*PassThru) Write added in v0.30.1

func (pt *PassThru) Write(p []byte) (int, error)

type RoundTripper added in v0.30.1

type RoundTripper struct {
	*http3.RoundTripper

	MultiAddr string

	Ifat *net.Interface

	// TLSClientConfig specifies the TLS configuration to use with
	// tls.Client. If nil, the default configuration is used.
	TLSClientConfig *tls.Config

	// QuicConfig is the quic.Config used for dialing new connections.
	// If nil, reasonable default values will be used.
	QuicConfig *quic.Config
}

Jump to

Keyboard shortcuts

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