| 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 | |
| 1097 | private: |
| 1098 | RtmpClientOptions _connect_options; |