qemu/ui
Amos Kong a6ba35b3be sockets: change inet_connect() to support nonblock socket
Add a bool argument to inet_connect() to assign if set socket
to block/nonblock, and delete original argument 'socktype'
that is unused.
Add a new argument to inet_connect()/inet_connect_opts(),
to pass back connect error by error class.

Retry to connect when -EINTR is got. Connect's successful
for nonblock socket when following errors are got, user
should wait for connecting by select():
  -EINPROGRESS
  -EWOULDBLOCK (win32)
  -WSAEALREADY (win32)

Change nbd, vnc to use new interface.

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-05-10 12:37:57 -05:00
..
cocoa.m Replace Qemu by QEMU in comments 2012-04-07 14:00:45 +00:00
curses.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
curses_keys.h
d3des.c
d3des.h Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00
keymaps.c ui: Plug memory leaks on parse_keyboard_layout() error path 2011-11-11 12:49:51 -06:00
keymaps.h
qemu-spice.h Revert "qemu-char: Print strerror message on failure" and deps 2012-02-24 09:06:56 -06:00
sdl.c sdl: remove NULL check, g_malloc0 can't fail 2012-02-27 09:46:51 +01:00
sdl_keysym.h
sdl_zoom.c
sdl_zoom.h
sdl_zoom_template.h
spice-core.c spice_info: add mouse_mode 2012-05-03 10:45:04 +02:00
spice-display.c Replace Qemu by QEMU in comments 2012-04-07 14:00:45 +00:00
spice-display.h qxl: make qxl_render_update async 2012-02-27 09:46:52 +01:00
spice-input.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-auth-sasl.c vnc: Fix packed boolean struct members 2012-03-19 10:52:52 +00:00
vnc-auth-sasl.h vnc: Fix packed boolean struct members 2012-03-19 10:52:52 +00:00
vnc-auth-vencrypt.c Store VNC auth scheme per-client as well as per-server 2011-07-23 11:19:02 -05:00
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h vnc: Add break statement 2012-03-08 15:22:11 +00:00
vnc-enc-hextile.c ui/vnc: Fix use of free() instead of g_free() 2011-11-01 16:52:05 -05:00
vnc-enc-tight.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-enc-tight.h
vnc-enc-zlib.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-enc-zrle-template.c vnc: Add ZRLE and ZYWRLE encodings. 2011-02-23 16:28:28 -06:00
vnc-enc-zrle.c vnc: fix uint8_t comparisons with negative values 2011-02-23 16:28:28 -06:00
vnc-enc-zrle.h vnc: Add ZRLE and ZYWRLE encodings. 2011-02-23 16:28:28 -06:00
vnc-enc-zywrle-template.c Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
vnc-enc-zywrle.h Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
vnc-jobs-async.c vnc: don't mess up with iohandlers in the vnc thread 2012-03-14 16:22:46 -05:00
vnc-jobs-sync.c
vnc-jobs.h vnc: don't mess up with iohandlers in the vnc thread 2012-03-14 16:22:46 -05:00
vnc-palette.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-palette.h vnc: palette: and fill and color calls. 2011-02-23 16:28:28 -06:00
vnc-tls.c ui/vnc: Fix use of free() instead of g_free() 2011-11-01 16:52:05 -05:00
vnc-tls.h
vnc.c sockets: change inet_connect() to support nonblock socket 2012-05-10 12:37:57 -05:00
vnc.h vnc: don't mess up with iohandlers in the vnc thread 2012-03-14 16:22:46 -05:00
vnc_keysym.h vnc: added missing name->keysym pairs for Polish national characters 2011-04-01 22:29:27 +02:00
x_keymap.c
x_keymap.h Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00