How thing-t6/tcp-proxy-server works
This Java project provides a TCP proxy workflow: a user supplies a listener port and origin, the proxy accepts a client, opens a connection to the origin, and forwards framed messages in both directions on separate threads. It also includes standalone client and echo-server programs. The README describes broader bidirectional stream handling; the excerpts show UTF-framed forwarding and a single accepted proxy connection. The edges below follow the visible calls and configuration; no unsampled implementation is assumed.
Main entry points: TcpProxy.java Proxy session worker · Client.java Example client · Server.java Example server
Components 9
Proxy runtime
- CLI configuration
src/TcpProxy.java - TCP listener
src/TcpProxy.java - Proxy session worker
src/TcpProxy.java - Client-to-target pipe
src/TcpProxy.java - Target-to-client pipe
src/TcpProxy.java
Standalone examples
- Example client
src/Client.java - Example server
src/Server.java
Other components
- Proxy operator
- Origin service
Connections 9
- Proxy operator → CLI configuration: provides flags
README.md - CLI configuration → TCP listener: configures
src/TcpProxy.java - TCP listener → Proxy session worker: starts worker
src/TcpProxy.java - Proxy session worker → Origin service: opens socket
src/TcpProxy.java - Proxy session worker → Client-to-target pipe: starts pipe
src/TcpProxy.java - Proxy session worker → Target-to-client pipe: starts pipe
src/TcpProxy.java - Client-to-target pipe → Origin service: forwards frames
src/TcpProxy.java - Target-to-client pipe → TCP listener: forwards frames
src/TcpProxy.java - Example client → Example server: sends frames
src/Client.java