mirror of https://bitbucket.org/ausocean/av.git
Create go RTMPSockBuf struct
This commit is contained in:
parent
10cd22d02a
commit
c071981cfb
15
rtmp/rtmp.go
15
rtmp/rtmp.go
|
@ -156,8 +156,8 @@ type RTMP struct {
|
|||
m_resplen int
|
||||
m_unackd int
|
||||
m_clientID AVal
|
||||
m_read C.RTMP_READ
|
||||
m_write C.RTMPPacket
|
||||
m_read RTMP_READ
|
||||
m_write RTMPPacket
|
||||
m_sb C.RTMPSockBuf
|
||||
Link C.RTMP_LNK
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ type RTMPPacket struct {
|
|||
m_nInfoField2 int32
|
||||
m_nBodySize uint32
|
||||
m_nBytesRead uint32
|
||||
m_chunk *RTMPChunk
|
||||
m_chunk *C.RTMPChunk
|
||||
m_body *byte
|
||||
}
|
||||
|
||||
|
@ -203,6 +203,15 @@ type RTMP_READ struct {
|
|||
nIgnoredFlvFrameCounter uint32
|
||||
}
|
||||
|
||||
type RTMPSockBuf struct {
|
||||
sb_socket int
|
||||
sb_size int
|
||||
sb_start *byte
|
||||
sb_buf [C.RTMP_BUFFER_CACHE_SIZE]byte // port const
|
||||
sb_timedout int
|
||||
sb_ssl uintptr
|
||||
}
|
||||
|
||||
var _ Session = (*session)(nil)
|
||||
|
||||
// NewSession returns a new session.
|
||||
|
|
Loading…
Reference in New Issue