Documentation ¶
Index ¶
- func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) adapter.V2RayClientTransport
- type Client
- type GunConn
- func (c *GunConn) Close() error
- func (c *GunConn) FrontHeadroom() int
- func (c *GunConn) LocalAddr() net.Addr
- func (c *GunConn) NeedAdditionalReadDeadline() bool
- func (c *GunConn) Read(b []byte) (n int, err error)
- func (c *GunConn) RemoteAddr() net.Addr
- func (c *GunConn) SetDeadline(t time.Time) error
- func (c *GunConn) SetReadDeadline(t time.Time) error
- func (c *GunConn) SetWriteDeadline(t time.Time) error
- func (c *GunConn) Write(b []byte) (n int, err error)
- func (c *GunConn) WriteBuffer(buffer *buf.Buffer) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GunConn ¶
type GunConn struct {
// contains filtered or unexported fields
}
func (*GunConn) FrontHeadroom ¶
func (*GunConn) NeedAdditionalReadDeadline ¶ added in v1.2.5
func (*GunConn) RemoteAddr ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(ctx context.Context, logger logger.ContextLogger, options option.V2RayGRPCOptions, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (*Server, 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
Click to show internal directories.
Click to hide internal directories.