Modified recvAllNB() to return an empty string (instead of NULL) if there is nothing to read

This commit is contained in:
2024-03-12 00:13:56 -05:00
parent 06f44d385d
commit 54f7dbe7ee
2 changed files with 6 additions and 4 deletions

View File

@@ -49,7 +49,8 @@ public:
/* Method to receive data sent to the 'other_socket' socket */
char* recvAll();
/* Non-blocking receive method - calls the method above after polling for data */
/* Non-blocking receive method - calls the method above after polling for data. Returns
an empty string if there is nothing to read. */
char* recvAllNB();
/* Returns socket identifier */