MTCP¶
TCP data channel with multiplexing function. Multiplexing supports xtaci/smux and hashicorp/yamux backends, selected via the mux.type option. 3.3.0
Usage¶
Options¶
mux.version(int, default=2)- SMUX protocol version.
mux.keepaliveDisabled(bool, default=false)- Whether to disable keep-alive.
mux.keepaliveInterval(duration, default=10s)- Heartbeat interval.
mux.keepaliveTimeout(duration, default=30s)- Heartbeat timeout.
mux.maxFrameSize(int, default=32768)- Maximum frame length.
mux.maxReceiveBuffer(int, default=4194304)- Receive buffer size.
mux.maxStreamBuffer(int, default=65536)- Steam Buffer Size.
mux.type(string, default=smux) 3.3.0- Mux backend type. Supported values:
smux(default),yamux. mux.maxStreamWindow(int) 3.3.0- Maximum stream window size (bytes) for yamux backend. Only effective when
mux.typeisyamux.
Proxy¶
MTCP tunnel can be used in combination with various proxy protocols.
HTTP Over MTCP¶
SOCKS5 Over MTCP¶
Relay Over MTCP¶
Port Forwarding¶
MTCP tunnel can also be used as port forwarding.
Server
is equivalent to