summaryrefslogtreecommitdiff
path: root/include/connection.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-23 18:28:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-23 18:28:42 +0000
commitbac7dea75b15323bb678ed56ca54606ee92c0afd (patch)
tree252691ab0e7240cd9dd1ccf26891e7ce66e6c178 /include/connection.h
parent426368db9d57376a47393cf22504f1d71b4ce0d8 (diff)
Buffer size limits (hard coded to 1mb for now, will allow to raise in config later)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1478 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/connection.h')
-rw-r--r--include/connection.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/connection.h b/include/connection.h
index 420839b0d..8f5efe2d7 100644
--- a/include/connection.h
+++ b/include/connection.h
@@ -185,11 +185,10 @@ class ircd_connector : public Extensible
void CloseConnection();
/** This method adds text to the ircd connection's buffer
- * There is no limitation on how much text of what line width may
- * be added to this buffer. It is the sending server's responsibility
- * to ensure sent data is kept within reasonable quanities.
+ * This buffer's maximum size is one megabyte, the method returning false
+ * if the buffer is full.
*/
- void AddBuffer(std::string a);
+ bool AddBuffer(std::string a);
/** This method returns true if the buffer contains at least one
* carriage return character, e.g. one line can be read from the