Documentation ¶
Index ¶
- Constants
- Variables
- func Dial(network string, addr string) (conn net.Conn, err error)
- func DialContext(ctx context.Context, network string, addr string) (conn net.Conn, err error)
- func Listen(network, addr string) (ln net.Listener, err error)
- func ListenContext(ctx context.Context, network, addr string) (ln net.Listener, err error)
- func QuicUpgrader() xnetutil.Upgrader
- func XUpgrader(cfg *tls.Config, isClient bool) xnetutil.Upgrader
- type QuicDialer
- type QuicListenConfig
- type QuicTransportDialer
- func (qtdr *QuicTransportDialer) Close() error
- func (qtdr *QuicTransportDialer) Dial(network string, addr string) (net.Conn, error)
- func (qtdr *QuicTransportDialer) DialContext(ctx context.Context, network string, addr string) (net.Conn, error)
- func (qtdr *QuicTransportDialer) Transport() *quic.Transport
Constants ¶
View Source
const XQuicPreHandShake = "XQuicPreHandShake"
Variables ¶
View Source
var QuicConnTmp *quicconn.QuicConn
Functions ¶
func DialContext ¶
func ListenContext ¶
func QuicUpgrader ¶
Types ¶
type QuicDialer ¶
type QuicDialer struct {
// contains filtered or unexported fields
}
func NewDialer ¶
func NewDialer(c net.PacketConn, tlsCfg *tls.Config) *QuicDialer
func (*QuicDialer) DialContext ¶
type QuicListenConfig ¶
type QuicListenConfig struct {
// contains filtered or unexported fields
}
func NewQuicListenConfig ¶
func NewQuicListenConfig(c net.PacketConn, tlsCfg *tls.Config) *QuicListenConfig
func NewQuicListenConfigWithTransport ¶
func NewQuicListenConfigWithTransport(tr *quic.Transport, tlsCfg *tls.Config) *QuicListenConfig
func (*QuicListenConfig) ListenContext ¶
func (qc *QuicListenConfig) ListenContext(ctx context.Context, network string, addr string) (ln net.Listener, err error)
ListenContext if exist c will be not use address and network
type QuicTransportDialer ¶
type QuicTransportDialer struct {
// contains filtered or unexported fields
}
func NewQuicTransportDialer ¶
func NewQuicTransportDialer(tr *quic.Transport, tlsCfg *tls.Config) *QuicTransportDialer
func (*QuicTransportDialer) Close ¶
func (qtdr *QuicTransportDialer) Close() error
func (*QuicTransportDialer) DialContext ¶
func (*QuicTransportDialer) Transport ¶
func (qtdr *QuicTransportDialer) Transport() *quic.Transport
Click to show internal directories.
Click to hide internal directories.