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

Method CreateSocket

src/brpc/rtmp.cpp:1101–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099};
1100
1101int RtmpClientImpl::CreateSocket(const butil::EndPoint& pt, SocketId* id) {
1102 SocketOptions sock_opt;
1103 sock_opt.remote_side = pt;
1104 sock_opt.app_connect = std::make_shared<RtmpConnect>();
1105 sock_opt.initial_parsing_context = new policy::RtmpContext(&_connect_options, NULL);
1106 return get_client_side_messenger()->Create(sock_opt, id);
1107}
1108
1109int RtmpClientImpl::CommonInit(const RtmpClientOptions& options) {
1110 _connect_options = options;

Callers 1

OnCreatingStreamMethod · 0.45

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected