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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user