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

Function MakeUnsentControlMessage

src/brpc/policy/rtmp_protocol.cpp:676–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676RtmpUnsentMessage* MakeUnsentControlMessage(
677 uint8_t message_type, uint32_t chunk_stream_id,
678 const void* data, size_t n) {
679 RtmpUnsentMessage* msg = new RtmpUnsentMessage;
680 msg->header.message_length = n;
681 msg->header.message_type = message_type;
682 msg->header.stream_id = RTMP_CONTROL_MESSAGE_STREAM_ID;
683 msg->chunk_stream_id = chunk_stream_id;
684 msg->body.append(data, n);
685 return msg;
686}
687
688RtmpUnsentMessage* MakeUnsentControlMessage(
689 uint8_t message_type, const void* data, size_t n) {

Callers 10

SendControlMessageMethod · 0.85
OnStopInternalMethod · 0.85
PlayMethod · 0.85
SendAckFunction · 0.85
OnPingRequestMethod · 0.85
OnConnectMethod · 0.85
OnCreateStreamMethod · 0.85
OnPlayMethod · 0.85
SendFMLEStartResponseFunction · 0.85
OnPauseMethod · 0.85

Calls 2

appendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected