gb使用receivebuffer

This commit is contained in:
yangjiechina
2024-06-17 22:59:03 +08:00
parent 89de34bd98
commit cb4eed8389
12 changed files with 289 additions and 267 deletions

View File

@@ -50,8 +50,6 @@ func (s *server) OnConnected(conn net.Conn) []byte {
}
func (s *server) OnPacket(conn net.Conn, data []byte) []byte {
log.Sugar.Infof("rtmp包大小:%d", len(data))
t := conn.(*transport.Conn)
session := t.Data.(*Session)
err := session.Input(conn, data)