public OutboundConnectivity GetOutboundConnectivity(IInNetStream pInNetStream, bool forceTcp) { if (OutboundConnectivity == null) { BaseOutNetRTPUDPStream pOutStream = new OutNetRTPUDPH264Stream(this, Application.StreamsManager, pInNetStream.Name, forceTcp); OutboundConnectivity = new OutboundConnectivity(forceTcp, this); if (!OutboundConnectivity.Initialize()) { FATAL("Unable to initialize outbound connectivity"); return(null); } pOutStream.Connectivity = OutboundConnectivity; OutboundConnectivity.OutStream = pOutStream; if (!pInNetStream.Link(pOutStream)) { FATAL("Unable to link streams"); return(null); } } return(OutboundConnectivity); }
public void CloseOutboundConnectivity() => OutboundConnectivity = null;
public OutboundConnectivity GetOutboundConnectivity(IInNetStream pInNetStream, bool forceTcp) { if (OutboundConnectivity == null) { BaseOutNetRTPUDPStream pOutStream = new OutNetRTPUDPH264Stream(this,Application.StreamsManager,pInNetStream.Name, forceTcp); OutboundConnectivity = new OutboundConnectivity(forceTcp, this); if (!OutboundConnectivity.Initialize()) { FATAL("Unable to initialize outbound connectivity"); return null; } pOutStream.Connectivity = OutboundConnectivity; OutboundConnectivity.OutStream=pOutStream; if (!pInNetStream.Link(pOutStream)) { FATAL("Unable to link streams"); return null; } } return OutboundConnectivity; }
public void CloseOutboundConnectivity() => OutboundConnectivity = null;