![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
#include <subprocess.h>
Public Member Functions | |
| Streams () | |
| Streams (const Streams &)=delete | |
| Streams & | operator= (const Streams &)=delete |
| Streams (Streams &&)=default | |
| Streams & | operator= (Streams &&)=default |
| void | setup_comm_channels () |
| void | cleanup_fds () |
| void | close_parent_fds () |
| void | close_child_fds () |
| FILE * | input () |
| FILE * | output () |
| FILE * | error () |
| void | input (FILE *fp) |
| void | output (FILE *fp) |
| void | error (FILE *fp) |
| void | set_out_buf_cap (size_t cap) |
| void | set_err_buf_cap (size_t cap) |
| int | send (const char *msg, size_t length) |
| int | send (const std::vector< char > &msg) |
| std::pair< OutBuffer, ErrBuffer > | communicate (const char *msg, size_t length) |
| std::pair< OutBuffer, ErrBuffer > | communicate (const std::vector< char > &msg) |
Public Attributes | |
| std::shared_ptr< FILE > | input_ = nullptr |
| std::shared_ptr< FILE > | output_ = nullptr |
| std::shared_ptr< FILE > | error_ = nullptr |
| int | write_to_child_ = -1 |
| int | read_from_parent_ = -1 |
| int | write_to_parent_ = -1 |
| int | read_from_child_ = -1 |
| int | err_write_ = -1 |
| int | err_read_ = -1 |
Private Attributes | |
| Communication | comm_ |
This is a helper class to Popen. It takes care of management of all the file descriptors and file pointers. It dispatches of the communication aspects to the Communication class. Read through the data members to understand about the various file descriptors used.
Definition at line 808 of file subprocess.h.
|
inline |
Definition at line 811 of file subprocess.h.
|
delete |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 865 of file subprocess.h.
|
inline |
|
inline |
Definition at line 853 of file subprocess.h.
|
inline |
|
inline |
Definition at line 851 of file subprocess.h.
|
inline |
|
inline |
Definition at line 852 of file subprocess.h.
|
inline |
Definition at line 859 of file subprocess.h.
|
inline |
|
inline |
Definition at line 856 of file subprocess.h.
|
inline |
Definition at line 855 of file subprocess.h.
|
inline |
Definition at line 1322 of file subprocess.h.
|
private |
Definition at line 902 of file subprocess.h.
| int subprocess::detail::Streams::err_read_ = -1 |
Definition at line 899 of file subprocess.h.
| int subprocess::detail::Streams::err_write_ = -1 |
Definition at line 898 of file subprocess.h.
| std::shared_ptr<FILE> subprocess::detail::Streams::error_ = nullptr |
Definition at line 876 of file subprocess.h.
| std::shared_ptr<FILE> subprocess::detail::Streams::input_ = nullptr |
Definition at line 874 of file subprocess.h.
| std::shared_ptr<FILE> subprocess::detail::Streams::output_ = nullptr |
Definition at line 875 of file subprocess.h.
| int subprocess::detail::Streams::read_from_child_ = -1 |
Definition at line 895 of file subprocess.h.
| int subprocess::detail::Streams::read_from_parent_ = -1 |
Definition at line 891 of file subprocess.h.
| int subprocess::detail::Streams::write_to_child_ = -1 |
Definition at line 890 of file subprocess.h.
| int subprocess::detail::Streams::write_to_parent_ = -1 |
Definition at line 894 of file subprocess.h.