aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorXuzhou Cheng <xuzhou.cheng@windriver.com>2022-10-28 12:57:27 +0800
committerThomas Huth <thuth@redhat.com>2022-10-28 11:17:12 +0200
commit84c662d2546feda2aeac21d09d4c71e8658062c0 (patch)
treefdb02c7c94bafe2d15a1ce305b1a85d243cc8dd5 /hw/misc
parentc9923550b446e54413024117c0ed978a08e3ab1a (diff)
downloadqemu-84c662d2546feda2aeac21d09d4c71e8658062c0.zip
qemu-84c662d2546feda2aeac21d09d4c71e8658062c0.tar.gz
qemu-84c662d2546feda2aeac21d09d4c71e8658062c0.tar.bz2
tests/qtest: Use send/recv for socket communication
Socket communication in the libqtest and libqmp codes uses read() and write() which work on any file descriptor on *nix, and sockets in *nix are an example of a file descriptor. However sockets on Windows do not use *nix-style file descriptors, so read() and write() cannot be used on sockets on Windows. Switch over to use send() and recv() instead which work on both Windows and *nix. Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com> Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20221028045736.679903-3-bin.meng@windriver.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/misc')
0 files changed, 0 insertions, 0 deletions