]> git.proxmox.com Git - mirror_qemu.git/commit - net/socket.c
Change net/socket.c to use socket_*() functions
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 18 Jun 2016 07:54:02 +0000 (13:24 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Sep 2016 10:25:14 +0000 (12:25 +0200)
commit883e4f7624e10b98d16d9adaffb8b1795664d899
tree13db9ee9d182ab78262e3daa0d01c6295bc5dfbd
parentd9911d14e01f5e97c6ac1fe681ef15334250d149
Change net/socket.c to use socket_*() functions

Use socket_*() functions from include/qemu/sockets.h instead of
listen()/bind()/connect()/parse_host_port(). socket_*() fucntions are
QAPI based and this patch  performs this api conversion since
everything will be using QAPI based sockets in the future. Also add a
helper function socket_address_to_string() in util/qemu-sockets.c
which returns the string representation of socket address. The task was
listed on http://wiki.qemu.org/BiteSizedTasks page.

Signed-off-by: Ashijeet Acharya <ashijeetacharya@gmail.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
net/socket.c