commit | 863f678fba4191f3b695620f41056cb7c124425d | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Mon Aug 20 10:21:54 2012 +0100 |
committer | Stefan Hajnoczi <stefanha@gmail.com> | Fri Sep 14 08:40:33 2012 +0100 |
tree | 930c9a15af27bf313ca7749793a5e655afb471a2 | |
parent | 61518a74ca98870e8ff132f91dd5dda252e31f58 [diff] |
net: asynchronous send/receive infrastructure for net/socket.c The net/socket.c net client is not truly asynchronous. This patch borrows the qemu_set_fd_handler2() code from net/tap.c as the basis for proper asynchronous send/receive. Only read packets from the socket when the peer is able to receive. This avoids needless queuing. Later patches implement asynchronous send. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>