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

Method OnConnected

src/brpc/policy/rtmp_protocol.cpp:2462–2469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2460}
2461
2462void RtmpContext::OnConnected(int error_code) {
2463 if (_on_connect != NULL) {
2464 void (*saved_on_connect)(int, void*) = _on_connect;
2465 void* saved_arg = _on_connect_arg;
2466 _on_connect = NULL;
2467 saved_on_connect(error_code, saved_arg);
2468 }
2469}
2470
2471bool RtmpChunkStream::OnResult(const RtmpMessageHeader& mh,
2472 AMFInputStream* istream, Socket* socket) {

Callers 3

StopConnectMethod · 0.80
OnResultMethod · 0.80
OnErrorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected