Re: [Qemu-devel] [PATCH 8/8] io: introduce a DNS resolver API

2017-01-06 Thread Daniel P. Berrange
On Thu, Jan 05, 2017 at 04:51:53PM -0600, Eric Blake wrote: > On 01/05/2017 10:03 AM, Daniel P. Berrange wrote: > > + * > > + * Resolving addresses synchronously > > + * > > + *int mylisten(SocketAddress *addr, Error **errp) { > > + * QIODNSResolver *resolver = qio_dns_resolver_get_i

Re: [Qemu-devel] [PATCH 8/8] io: introduce a DNS resolver API

2017-01-05 Thread Eric Blake
On 01/05/2017 10:03 AM, Daniel P. Berrange wrote: > 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 m

[Qemu-devel] [PATCH 8/8] io: introduce a DNS resolver API

2017-01-05 Thread Daniel P. Berrange
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