* [Qemu-devel] [PATCH] Fixing network over sockets implementation for win32
@ 2011-02-21 11:46 Pavel Dovgaluk
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Dovgaluk @ 2011-02-21 11:46 UTC (permalink / raw)
To: qemu-devel
MSDN includes the following in WSAEALREADY error description for connect()
function: "To preserve backward compatibility, this error is reported as
WSAEINVAL to Winsock applications that link to either Winsock.dll or
Wsock32.dll". So check of this error code was added to allow network
connections through the sockets in Windows.
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@gmail.com>
---
net/socket.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/socket.c b/net/socket.c
index 3182b37..7337f4f 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -457,7 +457,7 @@ static int net_socket_connect_init(VLANState *vlan,
} else if (err == EINPROGRESS) {
break;
#ifdef _WIN32
- } else if (err == WSAEALREADY) {
+ } else if (err == WSAEALREADY || err == WSAEINVAL) {
break;
#endif
} else {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Fixing network over sockets implementation for win32
[not found] <8421099935463718798@unknownmsgid>
@ 2011-02-25 18:05 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2011-02-25 18:05 UTC (permalink / raw)
To: Pavel Dovgaluk; +Cc: qemu-devel
Thanks, applied.
On Mon, Feb 21, 2011 at 1:46 PM, Pavel Dovgaluk
<Pavel.Dovgaluk@ispras.ru> wrote:
> MSDN includes the following in WSAEALREADY error description for connect()
> function: "To preserve backward compatibility, this error is reported as
> WSAEINVAL to Winsock applications that link to either Winsock.dll or
> Wsock32.dll". So check of this error code was added to allow network
> connections through the sockets in Windows.
>
>
> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@gmail.com>
> ---
> net/socket.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/socket.c b/net/socket.c
> index 3182b37..7337f4f 100644
> --- a/net/socket.c
> +++ b/net/socket.c
> @@ -457,7 +457,7 @@ static int net_socket_connect_init(VLANState *vlan,
> } else if (err == EINPROGRESS) {
> break;
> #ifdef _WIN32
> - } else if (err == WSAEALREADY) {
> + } else if (err == WSAEALREADY || err == WSAEINVAL) {
> break;
> #endif
> } else {
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-25 18:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21 11:46 [Qemu-devel] [PATCH] Fixing network over sockets implementation for win32 Pavel Dovgaluk
[not found] <8421099935463718798@unknownmsgid>
2011-02-25 18:05 ` Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).