From 3e87dae328c282016472f02fa5cc0431a922bcdc Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 22 Apr 2005 23:52:35 +0000 Subject: 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 --- include/connection.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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(); }; -- cgit v1.2.3