pipe-io-server/pipe_io_server/clients/java/Example.java

14 lines
400 B
Java
Raw Permalink Normal View History

public class Example {
public static void main(String[] args) {
try (PipeIO pipeio = new PipeIO("in", "out")) {
pipeio.reader.setMessageHandler(new MessageHandler(){
@Override
public void call(String msg) {
pipeio.writer.sendMessage(msg);
}
});
pipeio.reader.run();
}
}
}