![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
#include <subprocess.h>
Public Member Functions | |
Communication (Streams *stream) | |
Communication (const Communication &)=delete | |
Communication & | operator= (const Communication &)=delete |
Communication (Communication &&)=default | |
Communication & | operator= (Communication &&)=default |
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 789 of file subprocess.h.
|
inline |
Definition at line 792 of file subprocess.h.
|
delete |
|
default |
|
inline |
Definition at line 1442 of file subprocess.h.
|
inlineprivate |
Definition at line 1508 of file subprocess.h.
|
default |
|
delete |
|
inline |
Definition at line 1430 of file subprocess.h.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 816 of file subprocess.h.
|
private |
Definition at line 815 of file subprocess.h.
|
private |
Definition at line 814 of file subprocess.h.