diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 7267b8af..4273e141 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -739,7 +739,7 @@ func C_RTMP_Connect1(r *C.RTMP, cp *C.RTMPPacket) int { log.Println("... connected, handshaking...") } //if C.HandShake(r, 1) == 0 { - if handShake(r, 1) == 0 { + if C_HandShake(r, 1) == 0 { log.Println("C_RTMP_Connect1: handshake failed!") return 0 } @@ -754,7 +754,7 @@ func C_RTMP_Connect1(r *C.RTMP, cp *C.RTMPPacket) int { return 1 } -func handShake(r *C.RTMP, FP9HandShake int32) int { +func C_HandShake(r *C.RTMP, FP9HandShake int32) int { var bMatch int //uptime := uint32(0) //suptime := uint32(0) @@ -789,10 +789,10 @@ func handShake(r *C.RTMP, FP9HandShake int32) int { } if debugMode { - log.Println("handShake: Type answer: %v", typ) + log.Println("C_HandShake: Type answer: %v", typ) } if typ != clientbuf[0] { - log.Println("handShake: type mismatch: client sent %v, server sent: %v", + log.Println("C_HandShake: type mismatch: client sent %v, server sent: %v", clientbuf[0], typ) } if readN(r, (*byte)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE {