New task (a bit simpler). Optimized synchronous socket

This commit is contained in:
ftc
2023-03-02 22:23:00 +03:00
parent f111eb085d
commit 9e15e07d6f
2 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ string SynchronousSocket::Receive(int amount)
}
else
{
for (int i = 0; i < res; i++) r += buf[i];
r += (string)(buf, res);
}
}
return r;