private static LogStream OpenNetworkStream(ILogStreamSettings settings) { NetLogStream nls = NetUtils.CreateNetworkStream(settings.NetworkAppID, settings.NetworkAuthVersion, settings.Destination, settings.NetworkPort, settings.Mask, (MatchType)settings.MatchMode, settings.Timestamp); return(nls); }
private static void TestNetworkOut() { BitMask <LoggingTypes> mask = new BitMask <LoggingTypes>(true); var nc = NetworkConfig.Load("adl_network_config.xml"); var lts = NetUtils.CreateNetworkStream(nc, 1, Assembly.GetExecutingAssembly().GetName().Version, mask, MatchType.MatchAll, true); if (lts == null) { Debug.Log(Debug.AdlWarningMask, "No Server found on that port"); return; } Debug.LogGen(LoggingTypes.Log, "Adding Network Stream."); Debug.AddOutputStream(lts); }