From 5232506d5eade7ab98ff39ee98577b04b257bbb2 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Apr 2004 19:07:20 +0000 Subject: Buffering fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@580 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/connection.h | 3 ++- include/modules.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/connection.h b/include/connection.h index d92cc6354..2dd11633b 100644 --- a/include/connection.h +++ b/include/connection.h @@ -14,6 +14,7 @@ #include #include #include +#include #ifndef __CONNECTION_H__ #define __CONNECTION_H__ @@ -110,7 +111,7 @@ class connection : public classbase bool BeginLink(char* targethost, int port, char* password, char* servername); void TerminateLink(char* targethost); bool SendPacket(char *message, char* host); - bool RecvPacket(string_list &messages, char* host); + bool RecvPacket(std::deque &messages, char* host); ircd_connector* FindHost(std::string host); bool AddIncoming(int fd,char* targethost); long GenKey(); diff --git a/include/modules.h b/include/modules.h index 1db17b291..20fb5f04d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -30,6 +30,7 @@ typedef std::deque file_cache; typedef file_cache string_list; + // This #define allows us to call a method in all // loaded modules in a readable simple way, e.g.: // 'FOREACH_MOD OnConnect(user);' -- cgit v1.2.3