Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultStreamReceiveWindow = 15728640 // 15 MB/s DefaultConnectionReceiveWindow = 67108864 // 64 MB/s )
Variables ¶
View Source
var ( ClientClosed = errors.New("tuic: client closed") TooManyOpenStreams = errors.New("tuic: too many open streams") )
Functions ¶
func NewQuicStreamConn ¶
func SetCongestionController ¶
Types ¶
type Client ¶
type Client interface { DialContextWithDialer(ctx context.Context, metadata *C.Metadata, dialer C.Dialer, dialFn DialFunc) (net.Conn, error) ListenPacketWithDialer(ctx context.Context, metadata *C.Metadata, dialer C.Dialer, dialFn DialFunc) (net.PacketConn, error) OpenStreams() int64 DialerRef() C.Dialer LastVisited() time.Time SetLastVisited(last time.Time) Close() }
type ServerHandler ¶
Click to show internal directories.
Click to hide internal directories.