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

Method RemoveTransaction

src/brpc/policy/rtmp_protocol.cpp:1038–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038RtmpTransactionHandler*
1039RtmpContext::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
1052int RtmpContext::SendConnectRequest(const butil::EndPoint& remote_side, int fd, bool simplified_rtmp) {
1053 butil::IOBuf req_buf;

Callers 4

DestroyStreamCreatorMethod · 0.80
OnResultMethod · 0.80
OnErrorMethod · 0.80
PackRtmpRequestFunction · 0.80

Calls 2

seekMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected