v2: * PATCH 02 reworking of patch 2 following Markus's suggestion that convert error_report() in the function called by net_socket_*_init() to Error. Also add many error handling information. * PATCH 03 net_socket_mcast_create(), net_socket_fd_init_dgram() and net_socket_fd_init() use the function such as fprintf, perror to report an error message. Convert it to Error. * PATCH 04 parse_host_port() may fail without reporting an error. Now, fix it to set an error when it fails.
CC: berra...@redhat.com, kra...@redhat.com, pbonz...@redhat.com, jasow...@redhat.com, arm...@redhat.com Mao Zhongyi (4): net/socket: Convert the non-blocking connection mechanism to QIOchannel net/socket: Improve -net socket error reporting net/socket: Convert error report message to Error net/net: Convert parse_host_port() to Error include/qemu/sockets.h | 4 +- net/net.c | 21 +++++-- net/socket.c | 159 ++++++++++++++++++++++++++++++------------------- util/qemu-sockets.c | 2 +- 4 files changed, 117 insertions(+), 69 deletions(-) -- 2.9.3