MCPcopy Create free account
hub / github.com/apache/brpc / AddReceivedBytes

Method AddReceivedBytes

src/brpc/policy/rtmp_protocol.cpp:1374–1382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1372}
1373
1374void RtmpContext::AddReceivedBytes(Socket* socket, uint32_t sz) {
1375 _received_bytes += sz;
1376 _nonack_bytes += sz;
1377 if (_nonack_bytes > _window_ack_size) {
1378 _nonack_bytes -= _window_ack_size;
1379 PLOG_IF(WARNING, SendAck(socket, _received_bytes) != 0)
1380 << socket->remote_side() << ": Fail to send ack";
1381 }
1382}
1383
1384// ============ RtmpChunkStream ==============
1385

Callers 1

FeedMethod · 0.80

Calls 2

SendAckFunction · 0.85
remote_sideMethod · 0.45

Tested by

no test coverage detected