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 () { Log.Out ("Disconnect console clients!"); foreach (IServer s in servers) s.Disconnect (); } public static void WriteToClient (string line) { if (line == null) { return; } foreach (IServer s in servers) s.SendLine (line); } } }