v2raygrpclite

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: GPL-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, options option.V2RayGRPCOptions, tlsConfig *tls.Config) adapter.V2RayClientTransport

Types

type Client

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

func (*Client) DialContext

func (c *Client) DialContext(ctx context.Context) (net.Conn, error)

type GunConn

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

func (*GunConn) Close

func (c *GunConn) Close() error

func (*GunConn) FrontHeadroom

func (c *GunConn) FrontHeadroom() int

func (*GunConn) LocalAddr

func (c *GunConn) LocalAddr() net.Addr

func (*GunConn) Read

func (c *GunConn) Read(b []byte) (n int, err error)

func (*GunConn) RemoteAddr

func (c *GunConn) RemoteAddr() net.Addr

func (*GunConn) SetDeadline

func (c *GunConn) SetDeadline(t time.Time) error

func (*GunConn) SetReadDeadline

func (c *GunConn) SetReadDeadline(t time.Time) error

func (*GunConn) SetWriteDeadline

func (c *GunConn) SetWriteDeadline(t time.Time) error

func (*GunConn) Write

func (c *GunConn) Write(b []byte) (n int, err error)

func (*GunConn) WriteBuffer

func (c *GunConn) WriteBuffer(buffer *buf.Buffer) error

type Server

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

func NewServer

func NewServer(ctx context.Context, options option.V2RayGRPCOptions, tlsConfig *tls.Config, handler N.TCPConnectionHandler, errorHandler E.Handler) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) Network

func (s *Server) Network() []string

func (*Server) Serve

func (s *Server) Serve(listener net.Listener) error

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)

func (*Server) ServePacket

func (s *Server) ServePacket(listener net.PacketConn) error

Jump to

Keyboard shortcuts

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