WvStreams
wvtundev.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4  *
5  * A tun device wrapper.
6  */
7 #ifndef __WV_TUNDEV_H
8 #define __WV_TUNDEV_H
9 
10 #include "wvfile.h"
11 #include "wvinterface.h"
12 #include "wvaddr.h"
13 
21 class WvTunDev : public WvFile
22 {
23 public:
30  WvTunDev(const WvIPNet &addr, int mtu = 1400);
31 
34 
35 private:
36  void init(const WvIPNet &addr, int mtu);
37 
38 public:
39  const char *wstype() const { return "WvTunDev"; }
40 };
41 
42 
43 #endif