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: NDaniel P. Berrange <berrange@redhat.com>
Showing
include/io/channel-socket.h
0 → 100644
io/channel-socket.c
0 → 100644
此差异已折叠。
tests/io-channel-helpers.c
0 → 100644
tests/io-channel-helpers.h
0 → 100644
tests/test-io-channel-socket.c
0 → 100644
想要评论请 注册 或 登录