19 lines
452 B
Go
19 lines
452 B
Go
package rtmp
|
|
|
|
import (
|
|
"net"
|
|
"fmt"
|
|
)
|
|
|
|
func NegotiateConnect(conn net.Conn, params *ProtocolParams, open_chnkstrms map[uint32]*ChunkStream, open_msgs map[uint32]*Message, chunk_bufs *ChunkBuffers) (bool) {
|
|
for {
|
|
full_msg_ptr, err := ReadChunk(conn, open_chnkstrms, open_msgs, params.peer_chunk_size, chunk_bufs, &(params.curr_read))
|
|
if err != nil {
|
|
return false
|
|
}
|
|
if full_msg_ptr == nil {
|
|
continue
|
|
}
|
|
fmt.Println(*full_msg_ptr)
|
|
}
|
|
}
|