migration: convert socket server to QIONetListener
commitbdd847a026974634d636e65c4e00cd890cb6099d
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Mar 2018 14:17:14 +0000 (12 14:17 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 23 Mar 2018 16:27:24 +0000 (23 16:27 +0000)
tree4f9a18160035df00083d9d855386c019f3cb6cb5
parent4c2c1015905fa1d616750dfe024b4c0b35875950
migration: convert socket server to QIONetListener

Instead of creating a QIOChannelSocket directly for the migration
server socket, use a QIONetListener. This provides the ability
to listen on multiple sockets at the same time, so enables
full support for IPv4/IPv6 dual stack.

For example,   '$QEMU -incoming tcp::9000' now correctly listens
on both 0.0.0.0 and :: at the same time, instead of only on 0.0.0.0.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <20180312141714.7223-1-berrange@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/socket.c