Do not send data if we are connected, send it only once we actually are
This commit is contained in:
@@ -51,6 +51,10 @@ public:
|
||||
* notified when a send event is ready.
|
||||
*/
|
||||
void send_data(std::string&& data);
|
||||
/**
|
||||
* Watch the socket for send events, if our out buffer is not empty.
|
||||
*/
|
||||
void send_pending_data();
|
||||
/**
|
||||
* Returns the socket that should be handled by the poller.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user