stream-server/rtmp/connect.go
2023-08-10 03:24:00 +05:00

21 lines
446 B
Go

package rtmp
import (
"net"
"fmt"
)
func NegotiateConnect(conn net.Conn) (bool) {
open_chnkstrms, open_msgs := OpenStreamsMapInit()
full_msg_ptr, err := ReadChunk(conn, open_chnkstrms, open_msgs, 4096)
if err != nil {
return false
}
fmt.Printf("%08b\n", full_msg_ptr.data)
full_msg_ptr, err = ReadChunk(conn, open_chnkstrms, open_msgs, 4096)
if err != nil {
return false
}
fmt.Printf("%08b\n", full_msg_ptr.data)
return false
}