Beispiel #1
0
        public static bool SignalProtocolCreated(BaseProtocol protocol, Variant customParameters)
        {
            var application = ClientApplicationManager.FindAppByName(customParameters[Defines.CONF_APPLICATION_NAME]);

            if (application == null)
            {
                Logger.FATAL("Application {0} not found", customParameters[Defines.CONF_APPLICATION_NAME]);
                return(false);
            }
            if (protocol == null)
            {
                Logger.WARN("OutboundCluster Connection failed:{0}", customParameters.ToString());

                application.GetProtocolHandler <SlaveClusterAppProtocolHandler>().ReconnectTimer.Start();
                return(false);
            }
            protocol.CustomParameters = customParameters;
            protocol.Application      = application;
            return(true);
        }
Beispiel #2
0
        public static bool SignalProtocolCreated(BaseProtocol protocol, Variant customParameters)
        {
            var application = ClientApplicationManager.FindAppByName(customParameters[Defines.CONF_APPLICATION_NAME]);

            if (application == null)
            {
                Logger.FATAL("Application {0} not found", customParameters[Defines.CONF_APPLICATION_NAME]);
                return(false);
            }
            if (protocol == null)
            {
                Logger.FATAL("Connection failed:{0}", customParameters.ToString());
                return(application.OutboundConnectionFailed(customParameters));
            }
            protocol.Application = application;
            var outboundRTMPProtocol = protocol as OutboundRTMPProtocol;

            outboundRTMPProtocol.CustomParameters = customParameters;
            return(outboundRTMPProtocol.SignalInputData(0));
        }