mirror of https://bitbucket.org/ausocean/av.git
Ported sockbufsend and now using
This commit is contained in:
parent
fe53876c4f
commit
0245ec46ee
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue