diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-07-19 12:54:47 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2017-01-23 15:32:46 +0000 |
commit | c1b412f1d94ba717896f876dbf59fffa91e596fc (patch) | |
tree | 74603d5bd4f1bbe41cd974d22b79c6bba377604b /include/qemu | |
parent | 59de517d8d482416a079da7ee8344187d513d4a4 (diff) | |
download | qemu-c1b412f1d94ba717896f876dbf59fffa91e596fc.zip qemu-c1b412f1d94ba717896f876dbf59fffa91e596fc.tar.gz qemu-c1b412f1d94ba717896f876dbf59fffa91e596fc.tar.bz2 |
io: introduce a DNS resolver API
Currently DNS resolution is done automatically as part
of the creation of a QIOChannelSocket object instance.
This works ok for network clients where you just end
up a single network socket, but for servers, the results
of DNS resolution may require creation of multiple
sockets.
Introducing a DNS resolver API allows DNS resolution
to be separated from the socket object creation. This
will make it practical to create multiple QIOChannelSocket
instances for servers.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/sockets.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index 5589e68..5f1bab9 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -32,6 +32,8 @@ int socket_set_fast_reuse(int fd); */ typedef void NonBlockingConnectHandler(int fd, Error *err, void *opaque); +int inet_ai_family_from_address(InetSocketAddress *addr, + Error **errp); InetSocketAddress *inet_parse(const char *str, Error **errp); int inet_connect(const char *str, Error **errp); int inet_connect_saddr(InetSocketAddress *saddr, Error **errp, |