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: 7 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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