[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Looking for an easy way to exchange data bidirectional

From: Paul Brook
Subject: Re: [Qemu-devel] Looking for an easy way to exchange data bidirectional between host and guest (including some suggestion)
Date: Mon, 13 Jun 2005 01:22:50 +0100
User-agent: KMail/1.7.2

On Monday 13 June 2005 01:02, Henrik Nordstrom wrote:

> > If the ftp server ran on its own ip
> > address, then qemu could simply set up new servers on new ports for the
> > new data connections and have the client connect to them.
> You already have the router virtual IP address under your (or SLIRP) full
> control. No need to invent additional addresses imho.

I don't think this is a good idea. The current behaviour is to automatically 
forward connections to the router on to the host. INMO this is very useful 
and desirable behaviour, so any new services should be added on a different 
virtual IP. We already use additional addresses for dns, tftp and SMB.

> I don't see why active should be much harder than passive. SLIRP already 
> have support for both accepting and making connections both ways. Just 
> use what there is. There will be a somewhat hefty state machinery involved 
> however.. writing an FTP daemon within SLIRP is considerably more complex 
> than the same thing as a stand-alone daemon.

It doesn't have to be. You can use the same trick as the fork_exec code does. 
ie. the ftp code listens on a localhost socket, and use the normal slirp 
connection forwarding.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]