hack

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedConn

type BufferedConn struct {
	Conn   net.Conn
	Reader *bufio.Reader
}

func NewBufferedConn

func NewBufferedConn(conn net.Conn) *BufferedConn

func (*BufferedConn) Close

func (c *BufferedConn) Close() error

func (*BufferedConn) LocalAddr

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

func (*BufferedConn) Read

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

func (*BufferedConn) RemoteAddr

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

func (*BufferedConn) SetDeadline

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

func (*BufferedConn) SetReadDeadline

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

func (*BufferedConn) SetWriteDeadline

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

func (*BufferedConn) Write

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

type ChannelListener

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

func NewChannelListener

func NewChannelListener(ctx context.Context, ch chan net.Conn) *ChannelListener

func (*ChannelListener) Accept

func (ln *ChannelListener) Accept() (net.Conn, error)

func (*ChannelListener) Addr

func (ln *ChannelListener) Addr() net.Addr

func (*ChannelListener) Close

func (ln *ChannelListener) Close() error

type TLSClientHelloConn

type TLSClientHelloConn struct {
	Conn              *tls.Conn
	ClientHelloRecord []byte
	Done              context.CancelFunc
}

func (*TLSClientHelloConn) Close

func (c *TLSClientHelloConn) Close() error

func (*TLSClientHelloConn) LocalAddr

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

func (*TLSClientHelloConn) Read

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

func (*TLSClientHelloConn) RemoteAddr

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

func (*TLSClientHelloConn) SetDeadline

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

func (*TLSClientHelloConn) SetReadDeadline

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

func (*TLSClientHelloConn) SetWriteDeadline

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

func (*TLSClientHelloConn) Write

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

Jump to

Keyboard shortcuts

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