From eb3ab732c690df07dc3bb328e19878f4de79d26b Mon Sep 17 00:00:00 2001 From: Karutoh Date: Sun, 16 Nov 2025 19:57:22 -0800 Subject: [PATCH] Fixed TCP for Windows. --- README.md | 6 +++--- src/io/socket/TCP_W32.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3b3c283..87f499f 100644 --- a/README.md +++ b/README.md @@ -105,13 +105,13 @@ int main() if (!response.IsNum()) { - ehs::Console::Clear(); // Clear the console's buffer. - return main(); // Repeat process if given response is not a number. + ehs::Console::Clear(); // Clear the console's buffer. + return main(); // Repeat process if given response is not a number. } ehs::UInt_8 age = response.ToDecimal(); // Converts the string number into a number based primitive. - ehs::Console::Write("Your age is " + ehs::Str_8::FromNum(age) + "."); // Write the console with the age converted back to string. + ehs::Console::Write_8("Your age is " + ehs::Str_8::FromNum(age) + "."); // Write the console with the age converted back to string. ehs::Uninitialize(); diff --git a/src/io/socket/TCP_W32.cpp b/src/io/socket/TCP_W32.cpp index 7b19d51..b3efcd4 100644 --- a/src/io/socket/TCP_W32.cpp +++ b/src/io/socket/TCP_W32.cpp @@ -415,7 +415,7 @@ namespace ehs return hdl != EHS_INVALID_SOCKET; } - void TCP::Bind_v6(const Str_8& address, UInt_16 port) + void TCP::Bind_v6(const Str_8 &address, const UInt_16 &port) { sockaddr_in6 result = {}; result.sin6_family = AF_INET6; @@ -451,7 +451,7 @@ namespace ehs } } - void TCP::Bind_v4(const Str_8& address, UInt_16 port) + void TCP::Bind_v4(const Str_8 &address, const UInt_16 &port) { sockaddr_in result = {}; result.sin_family = AF_INET;