vless

package
v0.0.0-...-05ebade Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cmd_CRUMFURS byte = 4 // start from vless v1

	CRUMFURS_ESTABLISHED byte = 20

	CRUMFURS_Established_Str = "CRUMFURS_Established"
)
View Source
const Name = "vless"

Variables

This section is empty.

Functions

func NewVlessClient

func NewVlessClient(url *url.URL) (proxy.Client, error)

func NewVlessServer

func NewVlessServer(url *url.URL) (proxy.Server, error)

Types

type CRUMFURS

type CRUMFURS struct {
	net.Conn
}

func (*CRUMFURS) WriteUDPResponse

func (c *CRUMFURS) WriteUDPResponse(a *net.UDPAddr, b []byte) (err error)

type Client

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

func (*Client) AddrStr

func (c *Client) AddrStr() string

func (*Client) GetNewUDPResponse

func (c *Client) GetNewUDPResponse() (*net.UDPAddr, []byte, error)

func (*Client) Handshake

func (c *Client) Handshake(underlay net.Conn, target *proxy.TargetAddr) (io.ReadWriter, error)

func (*Client) Name

func (c *Client) Name() string

func (*Client) SetAddrStr

func (c *Client) SetAddrStr(s string)

func (*Client) Version

func (c *Client) Version() int

func (*Client) WriteUDPRequest

func (c *Client) WriteUDPRequest(a *net.UDPAddr, b []byte) (err error)

type Server

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

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Get_CRUMFURS

func (s *Server) Get_CRUMFURS(id string) *CRUMFURS

func (*Server) Name

func (s *Server) Name() string

func (*Server) Stop

func (s *Server) Stop()

type UserConn

type UserConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (*UserConn) GetIdentityStr

func (uc *UserConn) GetIdentityStr() string

func (*UserConn) GetProtocolVersion

func (uc *UserConn) GetProtocolVersion() int

Jump to

Keyboard shortcuts

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