aboutsummaryrefslogtreecommitdiff
path: root/works/life/computer-network-experiment/Common.h
diff options
context:
space:
mode:
Diffstat (limited to 'works/life/computer-network-experiment/Common.h')
-rw-r--r--works/life/computer-network-experiment/Common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/works/life/computer-network-experiment/Common.h b/works/life/computer-network-experiment/Common.h
index e5612fd..c3b6094 100644
--- a/works/life/computer-network-experiment/Common.h
+++ b/works/life/computer-network-experiment/Common.h
@@ -41,3 +41,8 @@ void InitWSA();
int CloseSocket(int socket);
void BeforeExit();
+
+String ReadInputLine();
+
+void SafeSend(int socket, std::string_view buffer);
+std::string SafeReadUntil(int socket, char c, std::string& rest);