proxy

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package proxy contains all proxies used by V2Ray.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidAuthentication  = errors.New("Invalid authentication.")
	ErrorInvalidProtocolVersion = errors.New("Invalid protocol version.")
	ErrorAlreadyListening       = errors.New("Already listening on another port.")
)

Functions

This section is empty.

Types

type InboundHandler added in v1.9.1

type InboundHandler interface {
	// Listen starts a InboundHandler by listen on a specific port.
	Listen(port v2net.Port) error
	// Close stops the handler to accepting anymore inbound connections.
	Close()
	// Port returns the port that the handler is listening on.
	Port() v2net.Port
}

An InboundHandler handles inbound network connections to V2Ray.

type OutboundHandler added in v1.9.1

type OutboundHandler interface {
	// Dispatch sends one or more Packets to its destination.
	Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) error
}

An OutboundHandler handles outbound network connection for V2Ray.

Directories

Path Synopsis
R.I.P Shadowsocks
R.I.P Shadowsocks
Package vmess contains the implementation of VMess protocol and transportation.
Package vmess contains the implementation of VMess protocol and transportation.
io

Jump to

Keyboard shortcuts

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