handshake

package
v0.23.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package handshake contains the RTMP handshake mechanism.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoClient

func DoClient(rw io.ReadWriter, validateSignature bool) error

DoClient performs a client-side handshake.

func DoServer

func DoServer(rw io.ReadWriter, validateSignature bool) error

DoServer performs a server-side handshake.

Types

type C0S0

type C0S0 struct{}

C0S0 is a C0 or S0 packet.

func (C0S0) Read

func (C0S0) Read(r io.Reader) error

Read reads a C0S0.

func (C0S0) Write

func (C0S0) Write(w io.Writer) error

Write writes a C0S0.

type C1S1

type C1S1 struct {
	Time   uint32
	Random []byte
	Digest []byte
}

C1S1 is a C1 or S1 packet.

func (*C1S1) Read

func (c *C1S1) Read(r io.Reader, isC1 bool, validateSignature bool) error

Read reads a C1S1.

func (*C1S1) Write

func (c *C1S1) Write(w io.Writer, isC1 bool) error

Write writes a C1S1.

type C2S2

type C2S2 struct {
	Time   uint32
	Time2  uint32
	Random []byte
	Digest []byte
}

C2S2 is a C2 or S2 packet.

func (*C2S2) Read

func (c *C2S2) Read(r io.Reader, validateSignature bool) error

Read reads a C2S2.

func (C2S2) Write

func (c C2S2) Write(w io.Writer) error

Write writes a C2S2.

Jump to

Keyboard shortcuts

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