internal

package
v0.0.0-...-cea0af2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMuxHandler

func NewMuxHandler(relayType string) *muxHandler

Types

type HandshakeMsg

type HandshakeMsg struct {
	StreamType StreamType
}

func UnmarshalHandshakeMsg

func UnmarshalHandshakeMsg(r io.Reader) (*HandshakeMsg, error)

func (*HandshakeMsg) WriteTo

func (m *HandshakeMsg) WriteTo(w io.Writer) error

type LocalProxy

type LocalProxy struct {
	// contains filtered or unexported fields
}

func NewLocalProxy

func NewLocalProxy(serverAddr string) *LocalProxy

func (*LocalProxy) BitwiseCopy

func (lp *LocalProxy) BitwiseCopy(cc, sc net.Conn) error

func (*LocalProxy) DialNormalStream

func (lp *LocalProxy) DialNormalStream(host string) (net.Conn, error)

func (*LocalProxy) H2ServerCopy

func (lp *LocalProxy) H2ServerCopy(cc net.Conn) error

type MuxServerConnDialer

type MuxServerConnDialer struct {
	// contains filtered or unexported fields
}

func NewMuxServerConnDialer

func NewMuxServerConnDialer(serverAddr, protocol string, maxConnections int) *MuxServerConnDialer

func (*MuxServerConnDialer) DialNormalStream

func (d *MuxServerConnDialer) DialNormalStream(host string) (net.Conn, error)

func (*MuxServerConnDialer) DialPrefetchStream

func (d *MuxServerConnDialer) DialPrefetchStream(host string) (net.Conn, error)

type StreamType

type StreamType int
const (
	StreamTypeNormal StreamType = iota
	StreamTypePrefetch
)

Jump to

Keyboard shortcuts

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