| Crates.io | tcp-proxy |
| lib.rs | tcp-proxy |
| version | 0.3.0 |
| created_at | 2023-02-04 10:42:36.965214+00 |
| updated_at | 2023-02-08 13:37:09.160434+00 |
| description | Simple TCP Proxy |
| homepage | |
| repository | |
| max_upload_size | |
| id | 776297 |
| size | 14,270 |
fn main() {
let listen = "127.0.0.1:8080";
let upstream = "127.0.0.1:8081";
tcp_proxy::new(&listen, &upstream, log);
}
fn log(id: usize, ip: &str, listen: &str, upstream: &str) {
}
tcp-proxy 127.0.0.1:8080 127.0.0.1:8081
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
Listen Upstream