| 1282 | } |
| 1283 | |
| 1284 | int 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 | |
| 1295 | int RtmpStreamBase::SendCuePoint(const RtmpCuePoint& cuepoint) { |
| 1296 | butil::IOBuf req_buf; |
nothing calls this directly
no test coverage detected