18 #ifndef HH_SENF_Socket_Protocols_Raw_TunTapSocketHandle_ 19 #define HH_SENF_Socket_Protocols_Raw_TunTapSocketHandle_ 1 39 typedef MakeSocketPolicy<
41 DatagramFramingPolicy,
42 ConnectedCommunicationPolicy,
86 void init_client(std::string
const & interface_name,
bool NO_PI=
true)
const;
114 mutable unsigned int ifaceIndex_;
bool eof() const
returns always false.
CommunicationPolicy public header.
Policy Framework public header.
ProtocolClientSocketHandle public header.
unsigned int ifaceIndex() const
returns the index of the correspondent tap interface
ReadPolicy and WritePolicy public header.
Protocol facet providing basic BSD socket functionality.
void init_client() const
Open tap socket and create new tap interface.
ProtocolClientSocketHandle< TapSocketProtocol > TapSocketHandle
SocketHandle of TapSocketProtocol.
SocketProcol for the tap pseudo-device.
Protocol specific socket handle (client interface)
BSDSocketProtocol public header.
unsigned available() const
Return (maximum) number of bytes available for reading without < blocking.
Concrete Socket Protocol implementation base class.
SocketProtocol and ConcreteSocketProtocol public header.
FramingPolicy public header.
MakeSocketPolicy< NoAddressingPolicy, DatagramFramingPolicy, ConnectedCommunicationPolicy, ReadablePolicy, WriteablePolicy >::policy Tap_Policy
Policy for TapSocketProtocol.
std::string ifaceName() const
returns the actual name of the correspondent tap interface