summaryrefslogtreecommitdiff
path: root/include/sockets.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-03 11:41:32 -0500
committerAdam <Adam@anope.org>2013-01-03 12:34:01 -0500
commit098157dca8a4aecc18294cbc31cbe5ee95b35a94 (patch)
tree654f00f21e151ba9007ca8eb044a78fef1bd6e39 /include/sockets.h
parent827469600e8cf98fea7aec09ceaa77a097300b72 (diff)
Don't delete users immediately when quit or killed, instead wait until message processing is done
Diffstat (limited to 'include/sockets.h')
-rw-r--r--include/sockets.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/sockets.h b/include/sockets.h
index ae7d6e798..1b9311794 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -261,10 +261,10 @@ class CoreExport Socket : public Flags<SocketFlag>
class CoreExport BufferedSocket : public virtual Socket
{
protected:
+ /* Things read from the socket */
+ Anope::string read_buffer;
/* Things to be written to the socket */
Anope::string write_buffer;
- /* Part of a message sent from the server, but not totally received */
- Anope::string extra_buf;
/* How much data was received from this socket on this recv() */
int recv_len;
@@ -282,11 +282,9 @@ class CoreExport BufferedSocket : public virtual Socket
*/
bool ProcessWrite() anope_override;
- /** Called with a line received from the socket
- * @param buf The line
- * @return true to continue reading, false to drop the socket
+ /** Gets the new line from the input buffer, if any
*/
- virtual bool Read(const Anope::string &buf);
+ const Anope::string GetLine();
/** Write to the socket
* @param message The message