aboutsummaryrefslogtreecommitdiff
path: root/computer-network-experiment/Common.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-07 20:20:10 +0800
committercrupest <crupest@outlook.com>2021-06-07 20:20:10 +0800
commitbc0e9b6558b7737846699c41196433055f915aec (patch)
tree6922ae75da4feb22b88d6ed2e247593dfa178a0e /computer-network-experiment/Common.h
parent1b8ff04e64e054a061f157b9458cf7c73dba43a9 (diff)
downloadlife-bc0e9b6558b7737846699c41196433055f915aec.tar.gz
life-bc0e9b6558b7737846699c41196433055f915aec.tar.bz2
life-bc0e9b6558b7737846699c41196433055f915aec.zip
...
Diffstat (limited to 'computer-network-experiment/Common.h')
-rw-r--r--computer-network-experiment/Common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/computer-network-experiment/Common.h b/computer-network-experiment/Common.h
index e5612fd..c3b6094 100644
--- a/computer-network-experiment/Common.h
+++ b/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);