diff options
author | Christian Pointner <equinox@anytun.org> | 2007-04-22 21:42:24 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2007-04-22 21:42:24 +0000 |
commit | 69c04f4f3e0186b70cefe82952a31dadc58406ea (patch) | |
tree | 78893c2a2b0e98bf2631d42522f2bf616bb4c43b /tunDevice.h | |
parent | enc (diff) |
initial checkin tunDevice.cpp and h
Diffstat (limited to 'tunDevice.h')
-rw-r--r-- | tunDevice.h | 18 |
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_; +} |