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

Method SetConnectCallback

src/brpc/policy/rtmp_protocol.h:322–325  ·  view source on GitHub ↗

Set the callback to be called in OnConnected(). This method should be called before initiating the RTMP handshake (sending C0 and C1)

Source from the content-addressed store, hash-verified

320 // Set the callback to be called in OnConnected(). This method should
321 // be called before initiating the RTMP handshake (sending C0 and C1)
322 void SetConnectCallback(void (*app_connect_done)(int, void*), void* data) {
323 _on_connect = app_connect_done;
324 _on_connect_arg = data;
325 }
326 // Called when the RTMP connection is established.
327 void OnConnected(int error_code);
328 bool unconnected() const { return _on_connect != NULL; }

Callers 1

StartConnectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected