[libvirt PATCH v2 07/13] src: convert code to use new socket portability wrappers