subprocess::Popen::send

send overloads

Synopses

Declared in <util/subprocess.h>

Sends the contents of a string to the child's input channel.

int
send(std::string const& msg);
» more...

Sends the contents of a byte vector to the child's input channel.

int
send(std::vector<char> const& msg);
» more...

Sends raw bytes to the child's input channel.

int
send(
    char const* msg,
    size_t length);
» more...

Return Value

Number of bytes written, or -1 on error.

Parameters

NameDescription
msgText to send.
lengthNumber of bytes to send.