summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 18:00:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 18:00:44 +0000
commit550ca03638ce77f59f3af4b768fa077ae11a084d (patch)
tree583370ad8925d77d3a95b469bbd92bbebaae500a /include
parent43e8ea4f5d54146d8b5fdf49d10fd3778dbdd3c0 (diff)
Packet buffering
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@541 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/connection.h11
-rw-r--r--include/servers.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/include/connection.h b/include/connection.h
index c996e0abd..57e970431 100644
--- a/include/connection.h
+++ b/include/connection.h
@@ -13,6 +13,7 @@
#include <unistd.h>
#include <errno.h>
#include <time.h>
+#include <vector>
#ifndef __CONNECTION_H__
#define __CONNECTION_H__
@@ -35,6 +36,15 @@ class packet : public classbase
~packet();
};
+class packet_buf : public classbase
+{
+ public:
+ packet p;
+ char host[128];
+ int port;
+};
+
+
class connection : public classbase
{
@@ -58,6 +68,7 @@ class connection : public classbase
time_t nping;
char internal_addr[1024];
int internal_port;
+ std::vector<packet_buf> buffer;
connection();
bool CreateListener(char* host, int p);
diff --git a/include/servers.h b/include/servers.h
index fe6920d2a..af678f5d6 100644
--- a/include/servers.h
+++ b/include/servers.h
@@ -60,6 +60,7 @@ class serverrec : public connection
/** Destructor
*/
~serverrec();
+
};