receive(rcv);
}
-UnixRemote::UnixRemote(const string& path, int /* timeout */)
+UnixRemote::UnixRemote(const string& path)
{
d_fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (d_fd < 0)
class UnixRemote : public CoRemote
{
public:
- UnixRemote(const string& path, int timeout = 0);
+ UnixRemote(const string& path);
void sendReceive(const string& send, string& receive) override;
void receive(string& rcv) override;
void send(const string& send) override;
throw ArgException("pipe-command is not specified");
if (isUnixSocket(d_command)) {
- d_cp = std::make_unique<UnixRemote>(d_command, d_timeout);
+ d_cp = std::make_unique<UnixRemote>(d_command);
}
else {
auto coprocess = std::make_unique<CoProcess>(d_command, d_timeout);