Chunk read test
This commit is contained in:
parent
0998da8d87
commit
5bc8a7affc
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue