From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DkqnJ-0007bs-VP for qemu-devel@nongnu.org; Tue, 21 Jun 2005 18:00:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DkqnE-0007Zm-9O for qemu-devel@nongnu.org; Tue, 21 Jun 2005 18:00:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DkqnD-0007UM-Si for qemu-devel@nongnu.org; Tue, 21 Jun 2005 18:00:27 -0400 Received: from [128.8.10.163] (helo=po1.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dkqe4-0001ms-Pz for qemu-devel@nongnu.org; Tue, 21 Jun 2005 17:51:00 -0400 Date: Tue, 21 Jun 2005 17:47:48 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] Looking for an easy way to exchange data bidirectional between host and guest (including some suggestion) Message-ID: <20050621214748.GA5464@jbrown.mylinuxbox.org> References: <42A061E3.8010804@xtal.rwth-aachen.de> <42B82164.6060609@xtal.rwth-aachen.de> <20050621200235.GA4350@jbrown.mylinuxbox.org> <200506212239.14333.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200506212239.14333.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org On Tue, Jun 21, 2005 at 10:39:14PM +0100, Paul Brook wrote: > > > Not a lot yet. I have a minimal ftp server that would be perfect to use > > with qemu, with much of the code rewritten. However, to make it interface > > with slirp a lot more work is needed (basicly the ftp server uses sockets > > while slirp works with tcp/ip packets directly. Thus I have to write a big > > interface layer (a sort of BSD sockets library on top of the slirp tcp/ip > > stack). > > Can't you just make the ftp code listen on a loopback socket, then use the > normal slirp forwarding code? > > Paul > Yes, as I said in my original email: > The other approach that I've opted out of is to hack slirp to have support for > the ftp protocol and run the server externally thru real sockets. If you or > anyone else wants to try this, I'm willing to help a little. There is nothing wrong with using the slirp forwarding code (it would probably be a lot easier to get to work), I just think that its overkill to have to open a socket (rather, one for each data connection) on the host just so qemu can talk to itself. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.