inbound

package
v1.1.1 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

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

Inbound connection handler that handles messages in VMess format.

func NewVMessInboundHandler

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

func (*VMessInboundHandler) AcceptConnections

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

func (*VMessInboundHandler) HandleConnection

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

func (*VMessInboundHandler) Listen

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

type VMessInboundHandlerFactory

type VMessInboundHandlerFactory struct {
}

func (*VMessInboundHandlerFactory) Create

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