Changed name of sockBufSend to C_SockBufSend

This commit is contained in:
saxon 2018-08-07 12:41:49 +09:30
parent 5ffd3ddee6
commit f7559152d9
1 changed files with 2 additions and 2 deletions

View File

@ -1873,7 +1873,7 @@ func C_WriteN(r *C.RTMP, buffer unsafe.Pointer, n int) int {
var nBytes int var nBytes int
// TODO: port this if necessary // TODO: port this if necessary
nBytes = int(sockBufSend(&r.m_sb, (*byte)(ptr), int32(n))) nBytes = int(C_SockBufSend(&r.m_sb, (*byte)(ptr), int32(n)))
if nBytes < 0 { if nBytes < 0 {
if debugMode { if debugMode {
@ -1909,7 +1909,7 @@ var RTMPT_cmds = []string{
"close", "close",
} }
func sockBufSend(sb *C.RTMPSockBuf, buf *byte, l int32) int32 { func C_SockBufSend(sb *C.RTMPSockBuf, buf *byte, l int32) int32 {
return int32(C.send(sb.sb_socket, unsafe.Pointer(buf), C.size_t(l), 0)) return int32(C.send(sb.sb_socket, unsafe.Pointer(buf), C.size_t(l), 0))
} }