diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-30 20:56:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-30 20:56:20 +0000 |
commit | 81722ff786becb636b5f5d5d92fe51bdaab65589 (patch) | |
tree | 43af1426cc60af17d50a4dd4556a0c53769ed6cf /include/connection.h | |
parent | d190f6e7c22d0b246a90f60dbadb7f8f44f0d813 (diff) |
Tried a new way of doing remote versions
commented some users and connections code
added remote @* notice
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1269 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/connection.h')
-rw-r--r-- | include/connection.h | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/include/connection.h b/include/connection.h index e8af1b648..300a83d4a 100644 --- a/include/connection.h +++ b/include/connection.h @@ -79,6 +79,8 @@ class ircd_connector : public Extensible */ bool SetHostAddress(char* host, int port); + /** This string holds the ircd's version response + */ std::string version; public: @@ -169,12 +171,36 @@ 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. + */ void 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 + * buffer successfully. + */ bool BufferIsComplete(); + + /** This method clears the server's buffer by setting it to an empty string. + */ void ClearBuffer(); + + /** This method retrieves the first string from the tail end of the + * buffer and advances the tail end of the buffer past the returned + * string, in a similar manner to strtok(). + */ std::string GetBuffer(); + /** This method sets the version string of the remote server + */ void SetVersionString(std::string newversion); + + /** This method returns the version string of the remote server. + * If the server has no version string an empty string is returned. + */ std::string GetVersionString(); }; @@ -303,10 +329,6 @@ class connection : public Extensible */ bool AddIncoming(int fd,char* targethost, int sourceport); - /** This function is deprecated and may be removed in a later alpha/beta - */ - long GenKey(); - }; |