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

Method CreateSocket

src/brpc/rtmp.cpp:1090–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088 }
1089
1090 int CreateSocket(const SocketOptions& opt, SocketId* id) override {
1091 SocketOptions sock_opt = opt;
1092 sock_opt.app_connect = std::make_shared<RtmpConnect>();
1093 sock_opt.initial_parsing_context = new policy::RtmpContext(&_connect_options, NULL);
1094 return get_client_side_messenger()->Create(sock_opt, id);
1095 }
1096
1097private:
1098 RtmpClientOptions _connect_options;

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected