private static void InitConsoleHook(int port = -1) { string host; (host, port) = LaunchRemoteConsoleViaSubProc(port); SocketConsoleSender.Init(host, port); }
public static void Init(string ip, int port) { if (_Instance != null) { Debug.WriteLine("New Instance"); _Instance.Dispose(); } _Instance = new SocketConsoleSender(ip, port); }
internal static void InitConsoleHookDefault() { try { SocketConsoleSender.Init("127.0.0.1", 56521); } catch (IOException) { InitConsoleHook(56521); } }