aboutsummaryrefslogtreecommitdiff
path: root/computer-network-experiment/Common.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-07 23:24:43 +0800
committercrupest <crupest@outlook.com>2021-06-07 23:24:43 +0800
commit2dd9b0e926ed97b64f0e6c2b6c071feaab9c47a0 (patch)
tree6a87c790fc03e3e95f14de9a59257aec66ba65b7 /computer-network-experiment/Common.cpp
parent1dd5c424e198a59b3572352fd973fe34dad225d1 (diff)
downloadlife-2dd9b0e926ed97b64f0e6c2b6c071feaab9c47a0.tar.gz
life-2dd9b0e926ed97b64f0e6c2b6c071feaab9c47a0.tar.bz2
life-2dd9b0e926ed97b64f0e6c2b6c071feaab9c47a0.zip
...
Diffstat (limited to 'computer-network-experiment/Common.cpp')
-rw-r--r--computer-network-experiment/Common.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/computer-network-experiment/Common.cpp b/computer-network-experiment/Common.cpp
index e4615fc..ec6fd1a 100644
--- a/computer-network-experiment/Common.cpp
+++ b/computer-network-experiment/Common.cpp
@@ -1,6 +1,6 @@
#include "Common.h"
-#include "Output.h"
+#include "IO.h"
#ifdef WIN32
#include <Windows.h>
@@ -70,12 +70,6 @@ void BeforeExit() {
SignalAndWaitForOutputThreadStop();
}
-String ReadInputLine() {
- String line;
- std::getline(input_stream, line);
- return line;
-}
-
void SafeSend(int socket, std::string_view buffer) {
const int total_byte_count = buffer.size();
int byte_count_sent = 0;