diff options
author | Adam <Adam@anope.org> | 2013-01-03 11:41:32 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-03 12:34:01 -0500 |
commit | 098157dca8a4aecc18294cbc31cbe5ee95b35a94 (patch) | |
tree | 654f00f21e151ba9007ca8eb044a78fef1bd6e39 /include/sockets.h | |
parent | 827469600e8cf98fea7aec09ceaa77a097300b72 (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.h | 10 |
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 |