summaryrefslogtreecommitdiff
path: root/include/io/net-listener.h
AgeCommit message (Collapse)AuthorFilesLines
2018-03-06qio: store gsources for net listenersPeter Xu1-2/+20
Originally we were storing the GSources tag IDs. That'll be not enough if we are going to support non-default gcontext for QIO code. Switch to GSources without changing anything real. Now we still always pass in NULL, which means the default gcontext. Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2017-12-15io: introduce a network socket listener APIDaniel P. Berrange1-0/+174
The existing QIOChannelSocket class provides the ability to listen on a single socket at a time. This patch introduces a QIONetListener class that provides a higher level API concept around listening for network services, allowing for listening on multiple sockets. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>