GetOutboundConnectivity() public method

public GetOutboundConnectivity ( IInNetStream pInNetStream, bool forceTcp ) : OutboundConnectivity
pInNetStream IInNetStream
forceTcp bool
return OutboundConnectivity
        private OutboundConnectivity GetOutboundConnectivity(RtspProtocol pFrom, bool forceTcp)
        {
            //1. Get the inbound stream
            var pInNetStream =
                    (IInNetStream)Application.StreamsManager.FindByUniqueId(
                    pFrom.CustomParameters["streamId"]);
            if (pInNetStream == null)
            {
                FATAL("Inbound stream {0} not found",pFrom.CustomParameters["streamId"]);
                return null;
            }

            //2. Get the outbound connectivity
            OutboundConnectivity pOutboundConnectivity = pFrom.GetOutboundConnectivity(pInNetStream, forceTcp);
                    
            if (pOutboundConnectivity == null)
            {
                FATAL("Unable to get the outbound connectivity");
                return null;
            }
            return pOutboundConnectivity;
        }