Re: [Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-23 Thread Daniel P. Berrange
On Sat, Jun 18, 2016 at 01:24:02PM +0530, Ashijeet Acharya wrote: > 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 >

Re: [Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-21 Thread Ashijeet Acharya
On Tue, Jun 21, 2016 at 7:19 AM, Jason Wang wrote: > > > On 2016年06月20日 23:09, Peter Maydell wrote: >> >> On 20 June 2016 at 15:55, Paolo Bonzini wrote: >>> >>> >>> On 18/06/2016 09:54, Ashijeet Acharya wrote: Use socket_*() functions from

Re: [Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-20 Thread Jason Wang
On 2016年06月20日 23:09, Peter Maydell wrote: On 20 June 2016 at 15:55, Paolo Bonzini wrote: On 18/06/2016 09:54, Ashijeet Acharya wrote: Use socket_*() functions from include/qemu/sockets.h instead of listen()/bind()/ connect()/parse_host_port(). socket_*() fucntions are

Re: [Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-20 Thread Peter Maydell
On 20 June 2016 at 15:55, Paolo Bonzini wrote: > > > On 18/06/2016 09:54, Ashijeet Acharya wrote: >> 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

Re: [Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-20 Thread Paolo Bonzini
On 18/06/2016 09:54, Ashijeet Acharya wrote: > 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

[Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-18 Thread Ashijeet Acharya
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