|
|
@ -2002,6 +2002,9 @@ int64_t srs_utils_send_bytes(srs_rtmp_t rtmp)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
srs_assert(rtmp != NULL);
|
|
|
|
srs_assert(rtmp != NULL);
|
|
|
|
Context* context = (Context*)rtmp;
|
|
|
|
Context* context = (Context*)rtmp;
|
|
|
|
|
|
|
|
if (!context->rtmp) {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
return context->rtmp->get_send_bytes();
|
|
|
|
return context->rtmp->get_send_bytes();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2009,6 +2012,9 @@ int64_t srs_utils_recv_bytes(srs_rtmp_t rtmp)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
srs_assert(rtmp != NULL);
|
|
|
|
srs_assert(rtmp != NULL);
|
|
|
|
Context* context = (Context*)rtmp;
|
|
|
|
Context* context = (Context*)rtmp;
|
|
|
|
|
|
|
|
if (!context->rtmp) {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
return context->rtmp->get_recv_bytes();
|
|
|
|
return context->rtmp->get_recv_bytes();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|