From d299ddd2f27a437f0fc0cb49abdfd6dd8e3d94f8 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 2 Feb 2021 11:44:31 -0500 Subject: add upstream 11.6 --- zen/socket.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'zen/socket.h') diff --git a/zen/socket.h b/zen/socket.h index 62386801..2dd1ff4c 100644 --- a/zen/socket.h +++ b/zen/socket.h @@ -94,9 +94,9 @@ size_t tryReadSocket(SocketType socket, void* buffer, size_t bytesToRead) //thro int bytesReceived = 0; for (;;) { - bytesReceived = ::recv(socket, //_In_ SOCKET s, - static_cast(buffer), //_Out_ char *buf, - static_cast(bytesToRead), //_In_ int len, + bytesReceived = ::recv(socket, //_In_ SOCKET s + static_cast(buffer), //_Out_ char* buf + static_cast(bytesToRead), //_In_ int len 0); //_In_ int flags if (bytesReceived >= 0 || errno != EINTR) break; @@ -119,9 +119,9 @@ size_t tryWriteSocket(SocketType socket, const void* buffer, size_t bytesToWrite int bytesWritten = 0; for (;;) { - bytesWritten = ::send(socket, //_In_ SOCKET s, - static_cast(buffer), //_In_ const char *buf, - static_cast(bytesToWrite), //_In_ int len, + bytesWritten = ::send(socket, //_In_ SOCKET s + static_cast(buffer), //_In_ const char* buf + static_cast(bytesToWrite), //_In_ int len 0); //_In_ int flags if (bytesWritten >= 0 || errno != EINTR) break; -- cgit