diff --git a/Receiver.cpp b/Receiver.cpp index 2ceb695..85ac957 100644 --- a/Receiver.cpp +++ b/Receiver.cpp @@ -23,7 +23,7 @@ std::string Receiver::Simple::read(size_t amount) { return fres; } void Receiver::Simple::read(std::byte *buffer, size_t size) { - recv(fd, buffer, size, MSG_WAITALL); + recv(fd, reinterpret_cast(buffer), size, MSG_WAITALL); } std::string Receiver::Simple::readSome(size_t max) { diff --git a/Runtime.hpp b/Runtime.hpp index e53075f..b4f4a17 100644 --- a/Runtime.hpp +++ b/Runtime.hpp @@ -216,6 +216,10 @@ public: std::getline(std::cin, content); return content.c_str(); } + + static void clearScreen() { + system("cls"); + } }; #endif #endif