static int makeCmdIO(MprCmd *cmd) { int rc; rc = 0; if (cmd->flags & MPR_CMD_IN) { rc += makeChannel(cmd, MPR_CMD_STDIN); } if (cmd->flags & MPR_CMD_OUT) { rc += makeChannel(cmd, MPR_CMD_STDOUT); } if (cmd->flags & MPR_CMD_ERR) { rc += makeChannel(cmd, MPR_CMD_STDERR); } return rc; }
void listen(const boost::asio::ip::address& addr) { listenerEp = EndpointT{addr, 7030}; listenerChannel = makeChannel(addr, 7030); listenerChannel->listen( [this] (const shared_ptr<Face>& newFace) { BOOST_REQUIRE(newFace != nullptr); connectFaceClosedSignal(*newFace, [this] { limitedIo.afterOp(); }); listenerFaces.push_back(newFace); limitedIo.afterOp(); }, ChannelFixture::unexpectedFailure); }