Changed the recvAll return type from std::string to char pointer, and created a non-blocking version of the function

This commit is contained in:
2024-02-28 00:05:53 -05:00
parent 349b0b78db
commit 69e70eb206
2 changed files with 18 additions and 3 deletions

View File

@@ -21,7 +21,10 @@ public:
void sendAll(std::string to_send);
std::string recvAll();
char* recvAll();
/* Non-blocking receive */
char* recvAllNB();
/* Return the type of socket */
int get_type() override;