plain

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth

func NewAuth(password []byte) types.Auth

Types

type Handshaker

type Handshaker [sha256.Size]byte

Handshaker bytes is password

func (Handshaker) DecodeHeader

func (password Handshaker) DecodeHeader(c net.Conn) (types.Protocol, error)

func (Handshaker) EncodeHeader

func (password Handshaker) EncodeHeader(net types.Protocol, buf types.Buffer, addr netapi.Address)

func (Handshaker) Handshake

func (Handshaker) Handshake(conn net.Conn) (net.Conn, error)

Jump to

Keyboard shortcuts

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