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

Method SendControlMessage

src/brpc/rtmp.cpp:1284–1293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282}
1283
1284int RtmpStreamBase::SendControlMessage(
1285 uint8_t message_type, const void* body, size_t size) {
1286 if (_rtmpsock == NULL) {
1287 errno = EPERM;
1288 return -1;
1289 }
1290 SocketMessagePtr<policy::RtmpUnsentMessage> msg(
1291 policy::MakeUnsentControlMessage(message_type, body, size));
1292 return _rtmpsock->Write(msg);
1293}
1294
1295int RtmpStreamBase::SendCuePoint(const RtmpCuePoint& cuepoint) {
1296 butil::IOBuf req_buf;

Callers

nothing calls this directly

Calls 2

MakeUnsentControlMessageFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected