inbound

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	AllowedUsers() []vmess.User
}

type VMessInboundHandler added in v1.1.2

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

Inbound connection handler that handles messages in VMess format.

func NewVMessInboundHandler added in v1.1.2

func NewVMessInboundHandler(space *app.Space, clients user.UserSet) *VMessInboundHandler

func (*VMessInboundHandler) AcceptConnections added in v1.1.2

func (this *VMessInboundHandler) AcceptConnections(listener *net.TCPListener) error

func (*VMessInboundHandler) HandleConnection added in v1.1.2

func (this *VMessInboundHandler) HandleConnection(connection *net.TCPConn) error

func (*VMessInboundHandler) Listen added in v1.1.2

func (this *VMessInboundHandler) Listen(port v2net.Port) error

type VMessInboundHandlerFactory added in v1.1.2

type VMessInboundHandlerFactory struct {
}

func (*VMessInboundHandlerFactory) Create added in v1.1.2

func (this *VMessInboundHandlerFactory) Create(space *app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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