Chunk read test

This commit is contained in:
Muaz Ahmad 2023-08-10 03:24:00 +05:00
parent 0998da8d87
commit 5bc8a7affc

View file

@ -2,8 +2,20 @@ 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
}