xen-socket test code