dep2pquic

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ListenOrder = 1

ListenOrder 定义了 QUIC 传输的监听顺序

Variables

View Source
var ErrHolePunching = errors.New("尝试进行打洞;没有活跃的拨号")

ErrHolePunching 表示尝试进行打洞但没有活跃的拨号

View Source
var HolePunchTimeout = 5 * time.Second

HolePunchTimeout 定义了打洞超时时间

Functions

func NewTransport

func NewTransport(key ic.PrivKey, connManager *quicreuse.ConnManager, psk pnet.PSK, gater connmgr.ConnectionGater, rcmgr network.ResourceManager) (tpt.Transport, error)

NewTransport 创建一个新的 QUIC 传输 参数:

  • key: ic.PrivKey 私钥
  • connManager: *quicreuse.ConnManager 连接管理器
  • psk: pnet.PSK 预共享密钥
  • gater: connmgr.ConnectionGater 连接门控器
  • rcmgr: network.ResourceManager 资源管理器

返回值:

  • tpt.Transport QUIC 传输实例
  • error 错误信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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