basic_tcp_proxy

Crates.iobasic_tcp_proxy
lib.rsbasic_tcp_proxy
version0.3.2
sourcesrc
created_at2020-10-10 17:04:53.404661
updated_at2023-08-20 11:00:35.881695
descriptionSimple synchronous TCP proxy crate for forwarding TCP connections
homepagehttps://github.com/jamesmcm/basic_tcp_proxy
repositoryhttps://github.com/jamesmcm/basic_tcp_proxy
max_upload_size
id298079
size18,291
James McMurray (jamesmcm)

documentation

README

basic_tcp_proxy

basic_tcp_proxy is a simple crate to launch a TCP proxy on new threads, redirecting TCP traffic from the listener port to the proxy destination.

This crate is deliberately synchronous for simplicity.

Example

Example forwarding 127.0.0.1:2000 to 127.0.0.1:4000

use basic_tcp_proxy::TcpProxy;

fn main() {
    let proxy = TcpProxy::new(2000, "127.0.0.1:4000".parse().unwrap());
    loop {}
}
Commit count: 11

cargo fmt