pipe-io-server/pipe_io_server/clients/c_cpp/example.cpp
2019-08-05 17:38:29 +02:00

14 lines
274 B
C++

#include <iostream>
#include <string>
#include <fstream>
#include "pipe_io.hpp"
int main() {
PipeIO pipe_io("in", "out");
pipe_io.reader.set_message_handler(
[&pipe_io](std::string msg){pipe_io.writer.send_message(msg);}
);
pipe_io.reader.run();
}