shadowtls

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConn

type ClientConn struct {
	*Conn
	// contains filtered or unexported fields
}

func NewClientConn

func NewClientConn(hashConn *HashReadConn) *ClientConn

func (*ClientConn) Write

func (c *ClientConn) Write(p []byte) (n int, err error)

func (*ClientConn) WriteVectorised

func (c *ClientConn) WriteVectorised(buffers []*buf.Buffer) error

type Conn

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

func NewConn

func NewConn(conn net.Conn) *Conn

func (*Conn) Read

func (c *Conn) Read(p []byte) (n int, err error)

func (*Conn) Upstream

func (c *Conn) Upstream() any

func (*Conn) Write

func (c *Conn) Write(p []byte) (n int, err error)

func (*Conn) WriteVectorised

func (c *Conn) WriteVectorised(buffers []*buf.Buffer) error

type HashReadConn

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

func NewHashReadConn

func NewHashReadConn(conn net.Conn, password string) *HashReadConn

func (*HashReadConn) Read

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

func (*HashReadConn) Sum

func (c *HashReadConn) Sum() []byte

type HashWriteConn

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

func NewHashWriteConn

func NewHashWriteConn(conn net.Conn, password string) *HashWriteConn

func (*HashWriteConn) Fallback

func (c *HashWriteConn) Fallback()

func (*HashWriteConn) HasContent

func (c *HashWriteConn) HasContent() bool

func (*HashWriteConn) LastSum

func (c *HashWriteConn) LastSum() []byte

func (*HashWriteConn) Sum

func (c *HashWriteConn) Sum() []byte

func (*HashWriteConn) Write

func (c *HashWriteConn) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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