record

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TLSMaxRecordSize = 65535 // max uint16

Variables

This section is empty.

Functions

func ReleaseRecord

func ReleaseRecord(r *Record)

Types

type Record

type Record struct {
	Type    Type
	Version Version
	Payload bytes.Buffer
}

func AcquireRecord

func AcquireRecord() *Record

func (*Record) Dump

func (r *Record) Dump(writer io.Writer) error

func (*Record) Read

func (r *Record) Read(reader io.Reader) error

func (*Record) Reset

func (r *Record) Reset()

func (*Record) String

func (r *Record) String() string

type Type

type Type uint8
const (
	TypeChangeCipherSpec Type = 0x14
	TypeHandshake        Type = 0x16
	TypeApplicationData  Type = 0x17
)

func (Type) String

func (t Type) String() string

func (Type) Valid

func (t Type) Valid() error

type Version

type Version uint16
const (
	Version10 Version = 769 // 0x03 0x01
	Version11 Version = 770 // 0x03 0x02
	Version12 Version = 771 // 0x03 0x03
	Version13 Version = 772 // 0x03 0x04
)

func (Version) String

func (v Version) String() string

func (Version) Valid

func (v Version) Valid() error

Jump to

Keyboard shortcuts

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