aboutsummaryrefslogtreecommitdiff
path: root/works/life/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
commit9c42586bc406015be0145576fd6cb3586686b4ca (patch)
tree92d0a84756dcc587f7e514ab98c5584e81852cc1 /works/life/computer-network-experiment/Common.cpp
parent08325faff52d0704c6f17d065ca8d72ea07ca6a0 (diff)
downloadcrupest-9c42586bc406015be0145576fd6cb3586686b4ca.tar.gz
crupest-9c42586bc406015be0145576fd6cb3586686b4ca.tar.bz2
crupest-9c42586bc406015be0145576fd6cb3586686b4ca.zip
import(life): ...
Diffstat (limited to 'works/life/computer-network-experiment/Common.cpp')
-rw-r--r--works/life/computer-network-experiment/Common.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/works/life/computer-network-experiment/Common.cpp b/works/life/computer-network-experiment/Common.cpp
index e4615fc..ec6fd1a 100644
--- a/works/life/computer-network-experiment/Common.cpp
+++ b/works/life/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;