|
OpenVPN 3 Core Library
|
#include <redir.hpp>
Public Member Functions | |
| RedirectTemp (const std::string &stdin_fn, TempFile &stdout_temp, const bool combine_out_err_arg) | |
| RedirectTemp (const std::string &stdin_fn, TempFile &stdout_temp, TempFile &stderr_temp) | |
Public Member Functions inherited from openvpn::RedirectStd | |
| RedirectStd (const std::string &in_fn, const std::string &out_fn, const int out_flags=FLAGS_OVERWRITE, const mode_t out_mode=MODE_ALL, const bool combine_out_err_arg=true) | |
Public Member Functions inherited from openvpn::RedirectStdFD | |
| void | redirect () noexcept override |
| void | close () override |
Public Member Functions inherited from openvpn::RedirectBase | |
| OPENVPN_EXCEPTION (redirect_std_err) | |
| virtual | ~RedirectBase ()=default |
Additional Inherited Members | |
Public Attributes inherited from openvpn::RedirectStdFD | |
| ScopedFD | in |
| ScopedFD | out |
| ScopedFD | err |
| bool | combine_out_err = false |
Static Public Attributes inherited from openvpn::RedirectStd | |
| static constexpr int | FLAGS_OVERWRITE = O_CREAT | O_WRONLY | O_TRUNC |
| static constexpr int | FLAGS_APPEND = O_CREAT | O_WRONLY | O_APPEND |
| static constexpr int | FLAGS_MUST_NOT_EXIST = O_CREAT | O_WRONLY | O_EXCL |
| static constexpr mode_t | MODE_ALL = 0777 |
| static constexpr mode_t | MODE_USER_GROUP = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP |
| static constexpr mode_t | MODE_USER = S_IRUSR | S_IWUSR |
Protected Member Functions inherited from openvpn::RedirectStd | |
| RedirectStd () | |
| void | open_input (const std::string &fn) |
| void | open_output (const std::string &fn, const int flags, const mode_t mode) |
|
inline |