Skip to main content

Module common

Module common 

Source

Modules§

log

Enums§

Address
SOCKS5 address type

Constants§

DEFAULT_BUF_SIZE
shadowsocks-rust, xray and tokio copy_bidirectional method all use 8k buffer
MAXIMUM_UDP_PAYLOAD_SIZE
https://github.com/shadowsocks/shadowsocks-rust/blob/c02d2edbff27d8be4cf542c3c3cd0fc6a059c8bd/crates/shadowsocks/src/relay/udprelay/mod.rs#L66-L70 The maximum UDP payload size (defined in the original shadowsocks Python)
TCP_DEFAULT_KEEPALIVE_TIMEOUT
Default TCP Keep Alive timeout

Functions§

copy_bidirectional
far_future_instant
find_str_in_str
from_str
invalid_data_error
invalid_input_error
to_string