Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitialStreamReceiveWindow = 2 * 1024 * 1024 // 2 MB MaxStreamReceiveWindow = 32 * 1024 * 1024 // 32 MB InitialConnectionReceiveWindow = 32 * 1024 * 1024 // 32 MB MaxConnectionReceiveWindow = 64 * 1024 * 1024 // 64 MB )
Variables ¶
Functions ¶
func GetUniqueFakeAddrPort ¶
func NewSafeStreamConn ¶
func SetCongestionController ¶
Types ¶
type Client ¶
type Client interface { DialContextWithDialer(ctx context.Context, metadata *protocol.Metadata, dialer netproxy.Dialer, dialFn DialFunc) (netproxy.Conn, error) ListenPacketWithDialer(ctx context.Context, metadata *protocol.Metadata, dialer netproxy.Dialer, dialFn DialFunc) (netproxy.PacketConn, error) OpenStreams() int64 Close() }
Click to show internal directories.
Click to hide internal directories.