예제 #1
0
        private static void InitConsoleHook(int port = -1)
        {
            string host;

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