Expand description
RTMP handshake logic.
Order of messages:
Client -> C0 -> Server
Client -> C1 -> Server
Client <- S0 <- Server
Client <- S1 <- Server
Client <- S2 <- Server
Client -> C2 -> Server
Modules§
- complex
- This module contains the complex handshake for the RTMP protocol.
- simple
- Simple Handshake Server
Constants§
- RTMP_
HANDSHAKE_ SIZE - This is the total size of the C1/S1 C2/S2 packets.
- TIME_
VERSION_ LENGTH - This is the length of the time and version. The time is 4 bytes and the version is 4 bytes.
- CHUNK_
LENGTH - This is the length of the chunk. The chunk is 764 bytes. or (1536 - 8) / 2 = 764
Structs§
- Rtmp
Version - The RTMP version.
Enums§
- Server
Handshake State - The state of the handshake.
- Handshake
Server - The server side of the handshake.
Functions§
- current_
time - Returns the current unix epoch time in nanoseconds.