On Mon, Apr 20, 2015 at 09:18:49AM +0200, Gerd Hoffmann wrote: > On Fr, 2015-04-17 at 15:22 +0100, Daniel P. Berrange wrote: > > Implement a QIOChannel subclass that supports sockets I/O > > > > TBD check errno handling of windows port & fix watch impl > > > +struct QIOChannelSocket { > > + QIOChannel parent; > > + int fd; > > + struct sockaddr_storage localAddr; > > + socklen_t localAddrLen; > > + struct sockaddr_storage remoteAddr; > > + socklen_t remoteAddrLen; > > +}; > > Looks like this supports a single listening socket only, correct? That > is a long-standing issue we have in qemu. Listening on both ipv4 and > ipv6 doesn't work, except when binding the socket to the ipv6 wildcard > address which can accept ipv4 connects too on most systems. > > Would be nice to tackle that while putting the socket code upside down > anyway.
Thanks for reminding me about this limitation - I'll have a think about how we can solve this problem at the same time too. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|