using my writeN tested and worked, but still using C readN

This commit is contained in:
saxon 2018-07-28 15:41:38 +09:30
parent 55d96bb2f1
commit 159a21c73a
1 changed files with 2 additions and 2 deletions

View File

@ -733,7 +733,6 @@ func rtmpConnect1(r *C.RTMP, cp *C.RTMPPacket) int {
} }
// TODO: complete this // TODO: complete this
func handShake(r *C.RTMP, FP9HandShake int32) int { func handShake(r *C.RTMP, FP9HandShake int32) int {
var bMatch int var bMatch int
//uptime := uint32(0) //uptime := uint32(0)
@ -764,7 +763,8 @@ func handShake(r *C.RTMP, FP9HandShake int32) int {
} }
// TODO: port this // TODO: port this
if readN(r, (*byte)(unsafe.Pointer(&typ)), 1) != 1 { if C.ReadN(r, (*C.char)(unsafe.Pointer(&typ)), 1) != 1 {
// if readN(r, (*byte)(unsafe.Pointer(&typ)), 1) != 1 {
return 0 return 0
} }