summaryrefslogtreecommitdiff
path: root/zen/socket.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-02-02 21:49:34 +0000
committerB Stack <bgstack15@gmail.com>2021-02-02 21:49:34 +0000
commit26b8bd6eb07b78adad36049e03494a2931b231af (patch)
tree4d7c950512836f473a6a8cbb521c61e800db6584 /zen/socket.h
parentMerge branch '11.5' into 'master' (diff)
parentadd upstream 11.6 (diff)
downloadFreeFileSync-26b8bd6eb07b78adad36049e03494a2931b231af.tar.gz
FreeFileSync-26b8bd6eb07b78adad36049e03494a2931b231af.tar.bz2
FreeFileSync-26b8bd6eb07b78adad36049e03494a2931b231af.zip
Merge branch '11.6' into 'master'11.6
add upstream 11.6 See merge request opensource-tracking/FreeFileSync!30
Diffstat (limited to 'zen/socket.h')
-rw-r--r--zen/socket.h12
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;
bgstack15