aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32.c
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2023-07-23 21:05:47 -0400
committerLee Salzman <[email protected]>2023-07-23 21:05:47 -0400
commit2a85cd64459f6ba038d233a634d9440490dbba12 (patch)
tree357ac6030b33ea1fc05ba5fea8ee7ea8b76a2808 /win32.c
parentea4607a90dbfbcf4da2669ea998585253d8e70b1 (diff)
downloadenet-2a85cd64459f6ba038d233a634d9440490dbba12.tar.gz
enet-2a85cd64459f6ba038d233a634d9440490dbba12.zip
better partial message handling
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32.c b/win32.c
index 0953466..f67e16b 100644
--- a/win32.c
+++ b/win32.c
@@ -382,13 +382,15 @@ enet_socket_receive (ENetSocket socket,
case WSAEWOULDBLOCK:
case WSAECONNRESET:
return 0;
+ case WSAEMSGSIZE:
+ return -2;
}
return -1;
}
if (flags & MSG_PARTIAL)
- return -1;
+ return -2;
if (address != NULL)
{