aboutsummaryrefslogtreecommitdiff
path: root/works/life/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
commitc10e08c3896343cc7ddffe1dd7b1d09da2f8548e (patch)
tree9a62f500d177a4190a4c3b642a58a38e109e56ea /works/life/computer-network-experiment/Common.h
parent04bc88aca6157dfd1d2309b353d9feb64bcc8800 (diff)
downloadcrupest-c10e08c3896343cc7ddffe1dd7b1d09da2f8548e.tar.gz
crupest-c10e08c3896343cc7ddffe1dd7b1d09da2f8548e.tar.bz2
crupest-c10e08c3896343cc7ddffe1dd7b1d09da2f8548e.zip
import(life): ...
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);