summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/net/unique_socket.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-02 06:14:31 -0500
committerGitHub <noreply@github.com>2025-12-02 06:14:31 -0500
commit92d95762c9cf75d9493ec75042c9415b382f10b0 (patch)
treedfcbd5b3fb9303e40b32db34cc857243df86ffc9 /include/ocl/net/unique_socket.hpp
parenta28d3e2e4e99793cf91f919d9341f5e07aa998e1 (diff)
parentbea0e3e713751e5c2a4d2d4343d8215333eef03e (diff)
Merge pull request #37 from amlel-el-mahrouss/developv1
chore: module source code tweaks and improvements.
Diffstat (limited to 'include/ocl/net/unique_socket.hpp')
-rw-r--r--include/ocl/net/unique_socket.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ocl/net/unique_socket.hpp b/include/ocl/net/unique_socket.hpp
index ed1d549..5e74af0 100644
--- a/include/ocl/net/unique_socket.hpp
+++ b/include/ocl/net/unique_socket.hpp
@@ -17,8 +17,8 @@
#include <cstddef>
#include <cstring>
-#ifdef _WIN32
-#error !!! "Windows is not supported yet for <socket>" !!!
+#ifdef OCL_WINDOWS
+#error !!! "Windows is not supported yet for <unique_socket>" !!!
#endif // _WIN32
namespace ocl::net
@@ -128,7 +128,7 @@ namespace ocl::net
if (is_server_)
return;
- auto ret = ::recv(this->socket_, static_cast<void*>(out), len, 0);
+ auto ret = ::recv(this->socket_, static_cast<void*>(out), len, 0);
this->bad_ = ret < 0L;
}