diff options
Diffstat (limited to 'works/life/computer-network-experiment/Common.h')
-rw-r--r-- | works/life/computer-network-experiment/Common.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/works/life/computer-network-experiment/Common.h b/works/life/computer-network-experiment/Common.h index 45a7da1..4e30439 100644 --- a/works/life/computer-network-experiment/Common.h +++ b/works/life/computer-network-experiment/Common.h @@ -14,8 +14,6 @@ inline auto &output_stream = std::wcout; inline auto &error_stream = std::wcerr;
#define CRUT(string_literal) L##string_literal
-int Main();
-
inline String ConvertCharString(std::string_view s) {
return cru::ToUtf16WString(s);
}
@@ -28,12 +26,16 @@ inline auto &output_stream = std::cout; inline auto &error_stream = std::cerr;
#define CRUT(string_literal) string_literal
-inline String ConvertCharString(std::string_view s) { return s; }
+inline String ConvertCharString(std::string_view s) { return String(s); }
#endif
+int Main();
+
[[noreturn]] void PrintErrorMessageAndExit(StringView message,
bool print_last_error = true);
#ifdef WIN32
void InitWSA();
#endif
+
+int Close(int socket);
|