Fixed TCP for Windows.
Some checks failed
Build & Release / Linux-AMD64-Build (push) Successful in 7m50s
Build & Release / Windows-AMD64-Build (push) Successful in 4m17s
Build & Release / Linux-AARCH64-Build (push) Failing after 28s

This commit is contained in:
2025-11-16 19:57:22 -08:00
parent d60d4c27ab
commit eb3ab732c6
2 changed files with 5 additions and 5 deletions

View File

@@ -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<ehs::UInt_8>(); // 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();

View File

@@ -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;