Documentation
¶
Index ¶
- func AuthHeaderSize(auth Auth, prefix bool) int
- func DecodePacket(r []byte, auth Auth, prefix bool) ([]byte, netapi.Address, error)
- func EncodePacket(w *pool.Buffer, addr net.Addr, buf []byte, auth Auth, prefix bool) error
- func MaxPacketHeaderSize(auth Auth, prefix bool) int
- func Salt(password []byte) []byte
- type Aead
- type Auth
- type Buffer
- type Handshaker
- type Hash
- type Header
- type PacketBuffer
- type Protocol
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHeaderSize ¶ added in v0.3.6
func DecodePacket ¶
func EncodePacket ¶
func MaxPacketHeaderSize ¶ added in v0.3.8
Types ¶
type Handshaker ¶
type PacketBuffer ¶
type Protocol ¶
type Protocol byte
Protocol network type +---------+-------+ | 1 byte | +---------+-------+ | 5bit | 3bit | +---------+-------+ | opts |prtocol| +---------+-------+
history: 66: 0b01000 010 77: 0b01001 101 78: 0b01001 110
so 0b01000 000, 0b01001 000 is reserved, because it already used on history
0b00001 000 is reserved for future extension that all opts bits used
Click to show internal directories.
Click to hide internal directories.