handshake

package
v0.0.0-...-6ff1c39 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: BSL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RTMPVersion = 3
View Source
var Version = [4]byte{0, 0, 0, 0} // TODO: fix

Functions

func HandshakeWithClient

func HandshakeWithClient(r io.Reader, w io.Writer, config *Config) error

func HandshakeWithServer

func HandshakeWithServer(r io.Reader, w io.Writer, config *Config) error

Types

type Config

type Config struct {
	SkipHandshakeVerification bool
}

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) DecodeS0C0

func (d *Decoder) DecodeS0C0(h *S0C0) error

func (*Decoder) DecodeS1C1

func (d *Decoder) DecodeS1C1(h *S1C1) error

func (*Decoder) DecodeS2C2

func (d *Decoder) DecodeS2C2(h *S2C2) error

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) EncodeS0C0

func (e *Encoder) EncodeS0C0(h *S0C0) error

func (*Encoder) EncodeS1C1

func (e *Encoder) EncodeS1C1(h *S1C1) error

func (*Encoder) EncodeS2C2

func (e *Encoder) EncodeS2C2(h *S2C2) error

type S0C0

type S0C0 byte // RTMP Version

type S1C1

type S1C1 struct {
	Time    uint32
	Version [4]byte
	Random  [1528]byte
}

type S2C2

type S2C2 struct {
	Time   uint32
	Time2  uint32
	Random [1528]byte
}

Jump to

Keyboard shortcuts

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