quic

package
v0.0.0-...-a9890c3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler provides QUIC streams between endpoints

func NewHandler

func NewHandler() *Handler

NewHandler inits a new QUIC protocol handler

func (*Handler) Send

func (p *Handler) Send(packets []protocol.Packet, addr net.IP) (int, error)

Send sends a frame to an endpoint

func (*Handler) SetHandler

func (p *Handler) SetHandler(handle protocol.HandlerFunc)

SetHandler sets the callback for receiving packets

func (*Handler) Start

func (p *Handler) Start() error

Start opens the QUIC listener and starts waiting for sessions

func (*Handler) Stop

func (p *Handler) Stop() error

Stop closes all sessions and the quic server

Jump to

Keyboard shortcuts

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