diff options
Diffstat (limited to 'zen/socket.h')
-rw-r--r-- | zen/socket.h | 12 |
1 files changed, 6 insertions, 6 deletions
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<char*>(buffer), //_Out_ char *buf, - static_cast<int>(bytesToRead), //_In_ int len, + bytesReceived = ::recv(socket, //_In_ SOCKET s + static_cast<char*>(buffer), //_Out_ char* buf + static_cast<int>(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<const char*>(buffer), //_In_ const char *buf, - static_cast<int>(bytesToWrite), //_In_ int len, + bytesWritten = ::send(socket, //_In_ SOCKET s + static_cast<const char*>(buffer), //_In_ const char* buf + static_cast<int>(bytesToWrite), //_In_ int len 0); //_In_ int flags if (bytesWritten >= 0 || errno != EINTR) break; |