Re: [libvirt] [PATCH 05/12] util: introduce compat wrappers for Winsock2

2020-01-15 Thread Pavel Hrdina
On Fri, Jan 10, 2020 at 03:41:09PM +, 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 >

[libvirt] [PATCH 05/12] util: introduce compat wrappers for Winsock2

2020-01-10 Thread Daniel P . Berrangé
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