tcp-proxy

Crates.iotcp-proxy
lib.rstcp-proxy
version0.3.0
sourcesrc
created_at2023-02-04 10:42:36.965214
updated_at2023-02-08 13:37:09.160434
descriptionSimple TCP Proxy
homepage
repository
max_upload_size
id776297
size14,270
Kaan Alkan (Fantros)

documentation

README

tcp-proxy

Simple TCP Proxy - Rust

Example Code

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) {
          
}

Bash

tcp-proxy 127.0.0.1:8080 127.0.0.1:8081
          ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
              Listen        Upstream
Commit count: 0

cargo fmt