tls

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeHttp = iota
	TypeHttp2
	TypeUnknown
)

Variables

This section is empty.

Functions

func StartClient

func StartClient(iface *water.Interface, config config.Config)

StartClient starts the tls client

func StartServer

func StartServer(iFace *water.Interface, config config.Config)

StartServer starts the tls server

Types

type SniffConn added in v1.6.7

type SniffConn struct {
	net.Conn

	Type int
	// contains filtered or unexported fields
}

func NewPeekPreDataConn added in v1.6.7

func NewPeekPreDataConn(c net.Conn) *SniffConn

func (*SniffConn) GetPath added in v1.6.7

func (c *SniffConn) GetPath() string

func (*SniffConn) Handle added in v1.6.7

func (c *SniffConn) Handle() bool

func (*SniffConn) Read added in v1.6.7

func (c *SniffConn) Read(p []byte) (int, error)

func (*SniffConn) SetPath added in v1.6.7

func (c *SniffConn) SetPath(path string)

Jump to

Keyboard shortcuts

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