summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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();
+
};