From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3eav-0001Dn-Om for qemu-devel@nongnu.org; Mon, 11 May 2009 19:07:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3eaq-0001D0-A6 for qemu-devel@nongnu.org; Mon, 11 May 2009 19:07:36 -0400 Received: from [199.232.76.173] (port=54013 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3eaq-0001Cx-6t for qemu-devel@nongnu.org; Mon, 11 May 2009 19:07:32 -0400 Received: from mx20.gnu.org ([199.232.41.8]:17989) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3eap-00015N-UX for qemu-devel@nongnu.org; Mon, 11 May 2009 19:07:32 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3ean-0004fX-PJ for qemu-devel@nongnu.org; Mon, 11 May 2009 19:07:30 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Transforming stdin and stdout pair into a socket Date: Tue, 12 May 2009 00:07:23 +0100 References: <8e04b5820905101119u39ae84bfp1bae24be6e057086@mail.gmail.com> <4A0813D6.3050609@codemonkey.ws> <8e04b5820905110632q1a3b9ad4u49d4f3208d994755@mail.gmail.com> In-Reply-To: <8e04b5820905110632q1a3b9ad4u49d4f3208d994755@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905120007.24881.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: nbd-general@lists.sourceforge.net, "Ciprian Dorin, Craciun" , linux-newbie@vger.kernel.org > I've seen socat, and I could use it as you described. My only > objection to this solution is that there is an unneeded process in the > middle that just pipes data around... > > (Instead of socat, I think it would be more efficient to just write > a simple application that uses the "new" Linux syscall "splice" that > I've just found by mistake yesterday...) In that case you need to fix socat to use splice() when available. I have a hard time believing socat adds measurable overhead, especially if you're already tunnelling over ssh. Paul