[libvirt] [PATCH 05/12] util: introduce compat wrappers for Winsock2
Pavel Hrdina
phrdina at redhat.com
Wed Jan 15 11:54:02 UTC 2020
On Fri, Jan 10, 2020 at 03:41:09PM +0000, Daniel P. Berrangé wrote:
> Windows sockets take a SOCKET HANDLE object instead of a
> file descriptor. Wrap them in the same way that gnulib
> does so that they use C runtime file descriptors.
>
> While we could in theory use GSocket, it is hard to get
> the exact same semantics libvirt has for its current
> socket usage. Wrapping the Winsock2 APIs is thus the
> easiest approach in the short term.
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> src/util/Makefile.inc.am | 2 +
> src/util/virsocket.c | 346 +++++++++++++++++++++++++++++++++++++++
> src/util/virsocket.h | 89 ++++++++++
> 3 files changed, 437 insertions(+)
> create mode 100644 src/util/virsocket.c
> create mode 100644 src/util/virsocket.h
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200115/a58fbc4f/attachment-0001.sig>
More information about the libvir-list
mailing list