diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2015-02-27 16:19:33 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:28:20 -0600 |
commit | dccd927a7bbb4167eebd609d067064a5ea0f7bff (patch) | |
tree | ba8e8c5eac411a56a49296b38db24dda4b153325 /util/qemu-sockets.c | |
parent | 475398e17331f4ba45895457593179ac5cd19265 (diff) | |
download | hqemu-dccd927a7bbb4167eebd609d067064a5ea0f7bff.zip hqemu-dccd927a7bbb4167eebd609d067064a5ea0f7bff.tar.gz |
io: add QIOChannelSocket class
Implement a QIOChannel subclass that supports sockets I/O.
The implementation is able to manage a single socket file
descriptor, whether a TCP/UNIX listener, TCP/UNIX connection,
or a UDP datagram. It provides APIs which can listen and
connect either asynchronously or synchronously. Since there
is no asynchronous DNS lookup API available, it uses the
QIOTask helper for spawning a background thread to ensure
non-blocking operation.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'util/qemu-sockets.c')
-rw-r--r-- | util/qemu-sockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 5a31d16..922efb3 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -1086,7 +1086,7 @@ socket_sockaddr_to_address_unix(struct sockaddr_storage *sa, } #endif /* WIN32 */ -static SocketAddress * +SocketAddress * socket_sockaddr_to_address(struct sockaddr_storage *sa, socklen_t salen, Error **errp) |