tcp net wip

This commit is contained in:
vaclavt
2022-05-05 18:01:57 +02:00
parent 4dfdd76b05
commit 3695a54e9a
2 changed files with 23 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ public:
[[nodiscard]] std::vector<std::string> client(const std::string &address, int portno, const std::vector<std::string> &requests) const;
private:
static const bool USE_LENGTH_HEADER = true;
static std::string read_from_socket(int sockfd) ;
static void write_to_socket(int sockfd, const std::string &str) ;
};