v2raygrpclite

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-2.0 Imports: 25 Imported by: 3

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) Close added in v1.2.2

func (c *Client) Close() error

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) NeedAdditionalReadDeadline added in v1.2.5

func (c *GunConn) NeedAdditionalReadDeadline() bool

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 (*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