summaryrefslogtreecommitdiff
path: root/tunDevice.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-04-22 21:42:24 +0000
committerChristian Pointner <equinox@anytun.org>2007-04-22 21:42:24 +0000
commit69c04f4f3e0186b70cefe82952a31dadc58406ea (patch)
tree78893c2a2b0e98bf2631d42522f2bf616bb4c43b /tunDevice.h
parentenc (diff)
initial checkin tunDevice.cpp and h
Diffstat (limited to 'tunDevice.h')
-rw-r--r--tunDevice.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tunDevice.h b/tunDevice.h
new file mode 100644
index 0000000..e1386b2
--- /dev/null
+++ b/tunDevice.h
@@ -0,0 +1,18 @@
+
+#include "openvpn/tun.h"
+
+class TunDevice
+{
+public:
+ TunDevice(string dev_name);
+ ~TunDevice();
+
+ int read(uint8_t *buf, int len);
+ int write(uint8_t *buf, int len);
+
+private:
+ void operator=(const TunDevice &src);
+ TunDevice(const TunDevice &src);
+
+ struct tuntap *dev_;
+}