static ControllerManager() { _listener = new PackageEventListener(); _netManager = new NetManager(_listener); _netManager.Start(Utility.IPC_PORT); ServerOutput.Line($"Started IPC server on {Utility.IPC_PORT}"); CreateProcess(); }
public static void Initialize() { System.Console.WriteLine("Creating IPC connection"); _listener = new PackageEventListener(); _netManager = new NetManager(_listener); _netManager.Start(); NetPeer peer = _netManager.Connect(new IPEndPoint(IPAddress.Loopback, Utility.IPC_PORT), ""); System.Console.WriteLine("Connected to " + peer.EndPoint.Port); }