summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-22 23:52:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-22 23:52:35 +0000
commit3e87dae328c282016472f02fa5cc0431a922bcdc (patch)
treeae854861596e9f8634598afa02efdf0c7a7d5f3f /include
parent4fff701800cfb3f5a27d7889561dceba18e29239 (diff)
Added server input buffers (for systems that decide buffering is fun)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1165 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/connection.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/connection.h b/include/connection.h
index ed88d83f7..65b6deed3 100644
--- a/include/connection.h
+++ b/include/connection.h
@@ -78,6 +78,10 @@ class ircd_connector : public Extensible
*/
bool SetHostAddress(char* host, int port);
+ /** IRCD Buffer for input characters, holds one line
+ */
+ std::string ircdbuffer;
+
public:
/** When MakeOutboundConnection is called, these public members are
@@ -158,6 +162,11 @@ class ircd_connector : public Extensible
* This function call updates no other data.
*/
void CloseConnection();
+
+ void AddBuffer(char a);
+ bool BufferIsComplete();
+ void ClearBuffer();
+ std::string GetBuffer();
};