reality

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRealityClient

func NewRealityClient(config *protocol.Protocol_Reality) point.WrapProxy

func NewServer

func NewServer(config *listener.Transport_Reality) func(netapi.Listener) (netapi.Listener, error)

func ServerNameMap added in v0.3.3

func ServerNameMap(s *listener.Transport_Reality) map[string]bool

func ShortIDMap added in v0.3.3

func ShortIDMap(s *listener.Transport_Reality) (map[[8]byte]bool, error)

Types

type RealityClient

type RealityClient struct {
	netapi.EmptyDispatch

	// TODO: remove debug log
	Deubg bool
	// contains filtered or unexported fields
}

func (*RealityClient) ClientHandshake

func (e *RealityClient) ClientHandshake(ctx context.Context, conn net.Conn) (net.Conn, error)

func (*RealityClient) Conn

func (e *RealityClient) Conn(ctx context.Context, addr netapi.Address) (net.Conn, error)

func (*RealityClient) PacketConn

func (e *RealityClient) PacketConn(ctx context.Context, addr netapi.Address) (net.PacketConn, error)

Jump to

Keyboard shortcuts

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