| 1036 | } |
| 1037 | |
| 1038 | RtmpTransactionHandler* |
| 1039 | RtmpContext::RemoveTransaction(uint32_t transaction_id) { |
| 1040 | RtmpTransactionHandler* handler = NULL; |
| 1041 | { |
| 1042 | BAIDU_SCOPED_LOCK(_trans_mutex); |
| 1043 | RtmpTransactionHandler** phandler = _trans_map.seek(transaction_id); |
| 1044 | if (phandler != NULL) { |
| 1045 | handler = *phandler; |
| 1046 | _trans_map.erase(transaction_id); |
| 1047 | } |
| 1048 | } |
| 1049 | return handler; |
| 1050 | } |
| 1051 | |
| 1052 | int RtmpContext::SendConnectRequest(const butil::EndPoint& remote_side, int fd, bool simplified_rtmp) { |
| 1053 | butil::IOBuf req_buf; |
no test coverage detected