From 69c04f4f3e0186b70cefe82952a31dadc58406ea Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Apr 2007 21:42:24 +0000 Subject: initial checkin tunDevice.cpp and h --- tunDevice.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tunDevice.h (limited to 'tunDevice.h') 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_; +} -- cgit v1.2.3