]> granicus.if.org Git - rtmpdump/commitdiff
Log BytesReceived reports from client
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Mon, 18 Jan 2010 22:42:50 +0000 (22:42 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Mon, 18 Jan 2010 22:42:50 +0000 (22:42 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@238 400ebc74-4327-4243-bc38-086b20814532

rtmpsuck.c

index cd8ebf4d1ebe053cd8c5ee210eb1b4d29afea55b..d5d28f475ef16ec0c972705c5d48990ebc1e8435 100644 (file)
@@ -820,6 +820,16 @@ void doServe(STREAMING_SERVER * server,    // server socket and state (our listenin
                         server->rc.m_outChunkSize = server->rs.m_inChunkSize;
                       }
                   }
+                /* bytes received */
+                else if (ps.m_packetType == 0x03)
+                  {
+                    if (ps.m_nBodySize >= 4)
+                      {
+                        int count = AMF_DecodeInt32(ps.m_body);
+                        Log(LOGDEBUG, "%s, client: bytes received = %d", __FUNCTION__,
+                            count);
+                      }
+                  }
                 /* ctrl */
                 else if (ps.m_packetType == 0x04)
                   {