Skip to content

Instantly share code, notes, and snippets.

@jbrisbin
Last active August 29, 2015 14:17
Show Gist options
  • Save jbrisbin/b8057e7041a4e5da0c80 to your computer and use it in GitHub Desktop.
Save jbrisbin/b8057e7041a4e5da0c80 to your computer and use it in GitHub Desktop.
Example RIPC server wiring using Reactor
ReactorTcpServer.listen(3000, ByteBuf.class)
.log("connection")
.consume(conn -> conn.out(conn.in().log("in"))
.log("confirmation")
.consume(buf -> LOG.info("write confirmed: {}", buf)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment