Ported sockbufsend and now using

This commit is contained in:
saxon 2018-07-19 15:25:10 +09:30
parent fe53876c4f
commit 0245ec46ee
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ func httpPost(r *C.RTMP, cmd C.RTMPTCmd, buf *byte, l int) int {
hbuf := (*byte)(unsafe.Pointer(&(([]byte(fString))[0]))) hbuf := (*byte)(unsafe.Pointer(&(([]byte(fString))[0])))
// TODO: port this // TODO: port this
C.RTMPSockBuf_Send(&r.m_sb, (*C.char)(unsafe.Pointer(hbuf)), C.int(hlen)) C.RTMPSockBuf_Send(&r.m_sb, (*C.char)(unsafe.Pointer(hbuf)), C.int(hlen))
hlen = int(C.RTMPSockBuf_Send(&r.m_sb, (*C.char)(unsafe.Pointer(buf)), C.int(l))) hlen = int(sockBufSend(&r.m_sb, (*byte)(unsafe.Pointer(buf)), int32(l)))
r.m_msgCounter++ r.m_msgCounter++
r.m_unackd++ r.m_unackd++
return hlen return hlen