diff options
author | crupest <crupest@outlook.com> | 2021-06-06 23:43:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-06 23:43:52 +0800 |
commit | 7a269e185fc59e5f81e7c91e6e75891ba2ca4b3b (patch) | |
tree | 8a0baf8e5eac69003770306e7968c1196a5a49dd /works/life/computer-network-experiment/Common.h | |
parent | fcd2304e04dd3fabdefce4293b1b76ad99f8ed73 (diff) | |
download | crupest-7a269e185fc59e5f81e7c91e6e75891ba2ca4b3b.tar.gz crupest-7a269e185fc59e5f81e7c91e6e75891ba2ca4b3b.tar.bz2 crupest-7a269e185fc59e5f81e7c91e6e75891ba2ca4b3b.zip |
import(life): ...
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);
|