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

Method StopConnect

src/brpc/rtmp.cpp:1074–1082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074void RtmpConnect::StopConnect(Socket* s) {
1075 policy::RtmpContext* ctx =
1076 static_cast<policy::RtmpContext*>(s->parsing_context());
1077 if (ctx == NULL) {
1078 LOG(FATAL) << "RtmpContext of " << *s << " is NULL";
1079 } else {
1080 ctx->OnConnected(EFAILEDSOCKET);
1081 }
1082}
1083
1084class RtmpSocketCreator : public SocketCreator {
1085public:

Callers 1

BeforeRecycledMethod · 0.45

Calls 1

OnConnectedMethod · 0.80

Tested by

no test coverage detected