Versions in this module Expand all Collapse all v0 v0.5.0 Apr 11, 2017 Changes in this version + type Config struct + ConnState ConnStateCallback + TLSConfig *tls.Config + type ConnState int + const ConnStateForwardSecure + const ConnStateInitial + const ConnStateSecure + const ConnStateVersionNegotiated + type ConnStateCallback func(Session, ConnState) + type Listener interface + Addr func() net.Addr + Close func() error + Serve func() error + func Listen(conn net.PacketConn, config *Config) (Listener, error) + func ListenAddr(addr string, config *Config) (Listener, error) + type PublicHeader struct + ConnectionID protocol.ConnectionID + DiversificationNonce []byte + PacketNumber protocol.PacketNumber + PacketNumberLen protocol.PacketNumberLen + Raw []byte + ResetFlag bool + SupportedVersions []protocol.VersionNumber + TruncateConnectionID bool + VersionFlag bool + VersionNumber protocol.VersionNumber + func ParsePublicHeader(b *bytes.Reader, packetSentBy protocol.Perspective) (*PublicHeader, error) + func (h *PublicHeader) GetLength(pers protocol.Perspective) (protocol.ByteCount, error) + func (h *PublicHeader) Write(b *bytes.Buffer, version protocol.VersionNumber, pers protocol.Perspective) error + type Session interface + AcceptStream func() (Stream, error) + Close func(error) error + LocalAddr func() net.Addr + OpenStream func() (Stream, error) + OpenStreamSync func() (Stream, error) + RemoteAddr func() net.Addr + func Dial(pconn net.PacketConn, remoteAddr net.Addr, host string, config *Config) (Session, error) + func DialAddr(addr string, config *Config) (Session, error) + type Stream interface + Reset func(error) + StreamID func() protocol.StreamID