shadowsocks

package
v1.11.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: GPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError deprecated

func NewError(logger logger.ContextLogger, ctx context.Context, err error)

Deprecated: remove

func NewInbound

func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.ShadowsocksInboundOptions) (adapter.Inbound, error)

func RegisterInbound

func RegisterInbound(registry *inbound.Registry)

func RegisterOutbound

func RegisterOutbound(registry *outbound.Registry)

Types

type Inbound

type Inbound struct {
	inbound.Adapter
	// contains filtered or unexported fields
}

func (*Inbound) Close

func (h *Inbound) Close() error

func (*Inbound) NewConnectionEx

func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)

func (*Inbound) NewError

func (h *Inbound) NewError(ctx context.Context, err error)

func (*Inbound) NewPacketEx

func (h *Inbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)

func (*Inbound) Start

func (h *Inbound) Start(stage adapter.StartStage) error

type MultiInbound

type MultiInbound struct {
	inbound.Adapter
	// contains filtered or unexported fields
}

func (*MultiInbound) Close

func (h *MultiInbound) Close() error

func (*MultiInbound) NewConnectionEx

func (h *MultiInbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)

func (*MultiInbound) NewError

func (h *MultiInbound) NewError(ctx context.Context, err error)

func (*MultiInbound) NewPacketEx

func (h *MultiInbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)

func (*MultiInbound) Start

func (h *MultiInbound) Start(stage adapter.StartStage) error

type Outbound

type Outbound struct {
	outbound.Adapter
	// contains filtered or unexported fields
}

func (*Outbound) Close

func (h *Outbound) Close() error

func (*Outbound) DialContext

func (h *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*Outbound) InterfaceUpdated

func (h *Outbound) InterfaceUpdated()

func (*Outbound) ListenPacket

func (h *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

type RelayInbound

type RelayInbound struct {
	inbound.Adapter
	// contains filtered or unexported fields
}

func (*RelayInbound) Close

func (h *RelayInbound) Close() error

func (*RelayInbound) NewConnectionEx

func (h *RelayInbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)

func (*RelayInbound) NewError

func (h *RelayInbound) NewError(ctx context.Context, err error)

func (*RelayInbound) NewPacketEx

func (h *RelayInbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr)

func (*RelayInbound) Start

func (h *RelayInbound) Start(stage adapter.StartStage) error

Jump to

Keyboard shortcuts

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