blob: cb5782b4ab311b944e4d814f714dbdb4cd6b6f3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
\section{Tun\-Device Class Reference}
\label{classTunDevice}\index{TunDevice@{TunDevice}}
{\tt \#include $<$tun\-Device.h$>$}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item
{\bf Tun\-Device} (const char $\ast$dev, const char $\ast$dev\_\-type, const char $\ast$ifcfg\_\-lp, const char $\ast$ifcfg\_\-rnmp)
\item
{\bf $\sim$Tun\-Device} ()
\item
void {\bf open} ()
\item
void {\bf close} ()
\item
bool {\bf is\-Open} ()
\item
short {\bf read} ({\bf Buffer} \&buf)
\item
int {\bf write} ({\bf Buffer} \&buf)
\item
char $\ast$ {\bf get\-Actual\-Name} ()
\item
{\bf u\_\-int32\_\-t} {\bf get\-Type} ()
\item
char $\ast$ {\bf get\-Type\-String} ()
\end{CompactItemize}
\subsection*{Static Public Attributes}
\begin{CompactItemize}
\item
static const {\bf u\_\-int32\_\-t} {\bf TYPE\_\-UNDEF} = 0
\item
static const {\bf u\_\-int32\_\-t} {\bf TYPE\_\-TUN} = 1
\item
static const {\bf u\_\-int32\_\-t} {\bf TYPE\_\-TAP} = 2
\end{CompactItemize}
\subsection*{Private Member Functions}
\begin{CompactItemize}
\item
void {\bf operator=} (const {\bf Tun\-Device} \&src)
\item
{\bf Tun\-Device} (const {\bf Tun\-Device} \&src)
\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item
{\bf Mutex} {\bf io\_\-mutex\_\-}
\item
tuntap $\ast$ {\bf dev\_\-}
\end{CompactItemize}
\subsection{Constructor \& Destructor Documentation}
\index{TunDevice@{Tun\-Device}!TunDevice@{TunDevice}}
\index{TunDevice@{TunDevice}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Tun\-Device::Tun\-Device (const char $\ast$ {\em dev}, const char $\ast$ {\em dev\_\-type}, const char $\ast$ {\em ifcfg\_\-lp}, const char $\ast$ {\em ifcfg\_\-rnmp})}\label{classTunDevice_d6914bd3a45e03ffe95676ac4420154a}
\index{TunDevice@{Tun\-Device}!~TunDevice@{$\sim$TunDevice}}
\index{~TunDevice@{$\sim$TunDevice}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Tun\-Device::$\sim$Tun\-Device ()}\label{classTunDevice_2c6196d270bf4d0e99ff4f860391faed}
\index{TunDevice@{Tun\-Device}!TunDevice@{TunDevice}}
\index{TunDevice@{TunDevice}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Tun\-Device::Tun\-Device (const {\bf Tun\-Device} \& {\em src})\hspace{0.3cm}{\tt [private]}}\label{classTunDevice_4587b54228b4240334ad4614211df394}
\subsection{Member Function Documentation}
\index{TunDevice@{Tun\-Device}!open@{open}}
\index{open@{open}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tun\-Device::open ()}\label{classTunDevice_323ddcfd4ac60d0dbfe6ebb5bbb9a323}
\index{TunDevice@{Tun\-Device}!close@{close}}
\index{close@{close}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tun\-Device::close ()}\label{classTunDevice_13986e13fe28da6c917293c40effb902}
\index{TunDevice@{Tun\-Device}!isOpen@{isOpen}}
\index{isOpen@{isOpen}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Tun\-Device::is\-Open ()}\label{classTunDevice_f63f3331789f043e44eb435b78c815b2}
\index{TunDevice@{Tun\-Device}!read@{read}}
\index{read@{read}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short Tun\-Device::read ({\bf Buffer} \& {\em buf})}\label{classTunDevice_553498887edc92f7b7e31e3bf04fb8fb}
\index{TunDevice@{Tun\-Device}!write@{write}}
\index{write@{write}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Tun\-Device::write ({\bf Buffer} \& {\em buf})}\label{classTunDevice_958bc73a627cc5d404ed87204547134d}
\index{TunDevice@{Tun\-Device}!getActualName@{getActualName}}
\index{getActualName@{getActualName}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ Tun\-Device::get\-Actual\-Name ()}\label{classTunDevice_e02f8972f75b11b69280fba9b6649cab}
\index{TunDevice@{Tun\-Device}!getType@{getType}}
\index{getType@{getType}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf u\_\-int32\_\-t} Tun\-Device::get\-Type ()}\label{classTunDevice_b57512464007681dcc92820adb3deb0f}
\index{TunDevice@{Tun\-Device}!getTypeString@{getTypeString}}
\index{getTypeString@{getTypeString}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ Tun\-Device::get\-Type\-String ()}\label{classTunDevice_0cecbc6a7e58d294dd005e7d523173bd}
\index{TunDevice@{Tun\-Device}!operator=@{operator=}}
\index{operator=@{operator=}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tun\-Device::operator= (const {\bf Tun\-Device} \& {\em src})\hspace{0.3cm}{\tt [private]}}\label{classTunDevice_de33e9a7a951b43f2f7e24d8fe9c311e}
\subsection{Member Data Documentation}
\index{TunDevice@{Tun\-Device}!TYPE_UNDEF@{TYPE\_\-UNDEF}}
\index{TYPE_UNDEF@{TYPE\_\-UNDEF}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf u\_\-int32\_\-t} {\bf Tun\-Device::TYPE\_\-UNDEF} = 0\hspace{0.3cm}{\tt [static]}}\label{classTunDevice_ec146b27c7755747c1cc1511e4482875}
\index{TunDevice@{Tun\-Device}!TYPE_TUN@{TYPE\_\-TUN}}
\index{TYPE_TUN@{TYPE\_\-TUN}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf u\_\-int32\_\-t} {\bf Tun\-Device::TYPE\_\-TUN} = 1\hspace{0.3cm}{\tt [static]}}\label{classTunDevice_ea416d7f03ef22bf1d166d33b47fd993}
\index{TunDevice@{Tun\-Device}!TYPE_TAP@{TYPE\_\-TAP}}
\index{TYPE_TAP@{TYPE\_\-TAP}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf u\_\-int32\_\-t} {\bf Tun\-Device::TYPE\_\-TAP} = 2\hspace{0.3cm}{\tt [static]}}\label{classTunDevice_b4ce6b158bbe4fe051b6fea8cd3d6cd3}
\index{TunDevice@{Tun\-Device}!io_mutex_@{io\_\-mutex\_\-}}
\index{io_mutex_@{io\_\-mutex\_\-}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Mutex} {\bf Tun\-Device::io\_\-mutex\_\-}\hspace{0.3cm}{\tt [private]}}\label{classTunDevice_e130228e28996e644d2013089e704d4c}
\index{TunDevice@{Tun\-Device}!dev_@{dev\_\-}}
\index{dev_@{dev\_\-}!TunDevice@{Tun\-Device}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}struct tuntap$\ast$ {\bf Tun\-Device::dev\_\-}\hspace{0.3cm}{\tt [private]}}\label{classTunDevice_239c85381dfcf1776303778d1784df51}
The documentation for this class was generated from the following files:\begin{CompactItemize}
\item
{\bf tun\-Device.h}\item
{\bf tun\-Device.cpp}\end{CompactItemize}
|