示例#1
0
        //
        public void Execute()
        {
            if (Init())
            {
                var localToRemote       = new RawProxyPipe(LocalStream, RemoteStream, true);
                var localToRemoteThread = new Thread(localToRemote.Transfer);
                localToRemoteThread.Start();

                var remoteToLocal       = new RawProxyPipe(RemoteStream, LocalStream, true);
                var remoteToLocalThread = new Thread(remoteToLocal.Transfer);
                remoteToLocalThread.Start();
            }
        }
示例#2
0
        //
        public void Execute()
        {
            if (Init())
            {
                var localToRemote = new RawProxyPipe(LocalStream, RemoteStream, true);
                var localToRemoteThread = new Thread(localToRemote.Transfer);
                localToRemoteThread.Start();

                var remoteToLocal = new RawProxyPipe(RemoteStream, LocalStream, true);
                var remoteToLocalThread = new Thread(remoteToLocal.Transfer);
                remoteToLocalThread.Start();
            }
        }