using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; using UnityEngine; namespace AllocsFixes.NetConnections { public class NetTelnetServer { private static List servers = new List (); public static void init (int port) { try { } catch (Exception e) { Log.Out ("Error in NetTelnetServer.init: " + e); } } public static void RegisterServer (IServer serv) { servers.Add (serv); } public static void SetConsole (ConsoleSdtd console) { } public static void Disconnect () { foreach (IServer s in servers) s.Disconnect (); } public static void WriteToClient (string line) { if (line == null) { return; } foreach (IServer s in servers) s.WriteToClient (line); } public static void WriteToClient_Single (string line, IConnection client) { if (line == null) { return; } foreach (IServer s in servers) s.WriteToClient_Single (line, client); } } }