server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerIO

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

func NewIO

func NewIO(setting *ServerIOSetting) *ServerIO

New creates a new VMess inbound handler.

func (*ServerIO) AddUser

func (h *ServerIO) AddUser(user i.User)

func (*ServerIO) Close

func (h *ServerIO) Close() error

Close implements common.Closable.

func (*ServerIO) FallbackProcess

func (s *ServerIO) FallbackProcess(ctx context.Context, conn net.Conn) (bool, buf.MultiBuffer, error)

func (*ServerIO) Network

func (*ServerIO) Network() []net.Network

Network implements proxy.Inbound.Network().

func (*ServerIO) Process

func (h *ServerIO) Process(ctx context.Context, conn net.Conn) error

Process implements proxy.Inbound.Process().

func (*ServerIO) RemoveUser

func (h *ServerIO) RemoveUser(uid, secret string)

func (*ServerIO) Start

func (h *ServerIO) Start() error

type ServerIOSetting

type ServerIOSetting struct {
	TimeoutSetting        i.TimeoutSetting
	Security              bool
	OnUnauthorizedRequest i.UnauthorizedReport
	Handler               i.ConnHandler
}

Jump to

Keyboard shortcuts

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