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) | |
![]() | |
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) | |
![]() | |
void | redirect () noexcept override |
void | close () override |
![]() | |
OPENVPN_EXCEPTION (redirect_std_err) | |
virtual | ~RedirectBase ()=default |
Additional Inherited Members | |
![]() | |
ScopedFD | in |
ScopedFD | out |
ScopedFD | err |
bool | combine_out_err = false |
![]() | |
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 |
![]() | |
RedirectStd () | |
void | open_input (const std::string &fn) |
void | open_output (const std::string &fn, const int flags, const mode_t mode) |
|
inline |