Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <subprocess.h>
Public Member Functions | |
Communication (Streams *stream) | |
void | operator= (const Communication &)=delete |
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) |
void | set_out_buf_cap (size_t cap) |
void | set_err_buf_cap (size_t cap) |
Private Member Functions | |
std::pair< OutBuffer, ErrBuffer > | communicate_threaded (const char *msg, size_t length) |
Private Attributes | |
Streams * | stream_ |
size_t | out_buf_cap_ = DEFAULT_BUF_CAP_BYTES |
size_t | err_buf_cap_ = DEFAULT_BUF_CAP_BYTES |
A helper class to Streams. This takes care of management of communicating with the child process with the means of the correct file descriptor.
Definition at line 756 of file subprocess.h.
|
inline |
Definition at line 759 of file subprocess.h.
|
inline |
Definition at line 1343 of file subprocess.h.
|
inlineprivate |
Definition at line 1409 of file subprocess.h.
|
delete |
|
inline |
Definition at line 1331 of file subprocess.h.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 780 of file subprocess.h.
|
private |
Definition at line 779 of file subprocess.h.
|
private |
Definition at line 778 of file subprocess.h.