transfer

package
v0.0.0-...-a5406a4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FLOW_ORIGIN = iota
	FLOW_LINUX_ZEROCOPY
	FLOW_ZEROCOPY
	FLOW_MULTIPLE
	FLOW_AUTO
)

Variables

This section is empty.

Functions

func SimpleTransfer

func SimpleTransfer(a, b net.Conn, flow int)

Types

type ConnContext

type ConnContext struct {
	ColoredID      string
	AdditionalInfo []string
	Err            error
}

func (*ConnContext) AttachInfo

func (c *ConnContext) AttachInfo(info string)

func (*ConnContext) Init

func (c *ConnContext) Init() *ConnContext

func (*ConnContext) String

func (c *ConnContext) String() (info string)

type Options

type Options struct {
	Out                     outbound.Outbound
	IsTLSHandleNeeded       bool
	IsMinecraftHandleNeeded bool
	FlowType                int
	OnlineCount             atomic.Int32
}

Jump to

Keyboard shortcuts

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