コード例 #1
0
        public PipeClient(string handle, NxSim game)
        {
            PipeStream pipeClient = new AnonymousPipeClientStream(PipeDirection.In, handle);

            sr        = new StreamReader(pipeClient);
            ev        = EventWaitHandle.OpenExisting("NxPipe");
            this.game = game;
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: dinojimmy6/MapleLabs
        static void Main(string[] args)
        {
            var game = new NxSim();

            if (args.Length > 0)
            {
                PipeClient pc = new PipeClient(args[0], game);
                Thread     t  = new Thread(
                    new ParameterizedThreadStart(pc.Listen)
                    );
                t.IsBackground = true;
                t.Start();
            }
            using (game)
                game.Run();
        }