+11
−0
include/io/channel-socket.h
0 → 100644
+244
−0
+19
−0
+1
−0
io/channel-socket.c
0 → 100644
+741
−0
File added.
Preview size limit exceeded, changes collapsed.
Loading
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>
File added.
Preview size limit exceeded, changes collapsed.