summaryrefslogtreecommitdiff
path: root/include/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/connection.h')
-rw-r--r--include/connection.h11
1 files changed, 11 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);