12#ifndef OPENVPN_TUN_PERSIST_TUNWRAPASIO_H
13#define OPENVPN_TUN_PERSIST_TUNWRAPASIO_H
26template <
typename TunWrap>
45 template <
typename MUTABLE_BUFFER,
typename HANDLER>
51 template <
typename CONST_BUFFER>
54 return tun_wrap->obj()->write_some(buffers);
void async_read_some(const MUTABLE_BUFFER &buffers, HANDLER &&handler)
TunWrapAsioStream(const typename TunWrap::Ptr &tun_wrap_arg)
std::size_t write_some(const CONST_BUFFER &buffers)
static void handler(int signum)