Changed 'recvAll' return type from std::string to char pointer, and created a non-blocking version of the function
This commit is contained in:
@@ -33,9 +33,15 @@ public:
|
||||
|
||||
/* Method to send data in 'to_send' through the 'other_socket' socket */
|
||||
void sendAll(std::string to_send);
|
||||
|
||||
/* Same as method above, with buffer and buffer size */
|
||||
void sendAll(char* buffer, int size);
|
||||
|
||||
/* Method to receive data sent to the 'other_socket' socket */
|
||||
std::string recvAll();
|
||||
char* recvAll();
|
||||
|
||||
/* Non-blocking receive method - calls the method above after polling for data */
|
||||
char* recvAllNB();
|
||||
|
||||
/* Returns socket identifier */
|
||||
int getSockFD();
|
||||
|
Reference in New Issue
Block a user