Do not send data if we are connected, send it only once we actually are

This commit is contained in:
Florent Le Coz
2014-03-24 18:37:31 +01:00
parent 3b1bf740a3
commit e196d2f1f4
4 changed files with 17 additions and 1 deletions
+4
View File
@@ -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.
*/