public final class ProxyServer
extends java.lang.Object
An example to demonstrate how to write a simple TCP proxy.
The intent here is NOT to prescribe how to write a fully functional proxy, which would otherwise require
appropriate routing on the origin endpoints, etc. Instead, it is to demonstrate how to write a server that forwards
the received data on a connection, as is, to another server using an RxNetty client.
This example starts an embedded target server, which is a simple TCP server that echoes the messages recieved on any
connection recieves. The proxy server then forwards all received data on any connection to this target server. Any
messages received from the target server are sent back to the caller, after prepending "proxy =>" to every message,
to demonstrate that the data is proxied.