Structs§
- Auth
Reuse Cache - Authentication policy for inbound connections. Bounded compatibility authentication state keyed by source IP.
- Inbound
Shadowsocks Config - Configuration for Shadowsocks inbound listener.
- Inbound
Trojan Config - Configuration for Trojan inbound listener.
- Pending
Http Forward - A pending HTTP forward-proxy request.
- Pending
Tunnel - A pending tunnel connection (HTTP CONNECT, SOCKS4, SOCKS5). Success reply has NOT been sent yet.
- Pending
UdpAssociate - A pending SOCKS5 UDP ASSOCIATE session.
Enums§
- Accept
Error - Error type for accept operations.
- Accepted
Session - The result of accepting an inbound connection.
- Inbound
Authentication - Reply
Context - Information needed to send a protocol-specific reply later.
- Tunnel
Protocol - Which tunnel protocol was used.
Functions§
- accept
- Read the first byte from the stream, detect the protocol, perform the
handshake parsing, and return an
AcceptedSessionwithout opening any outbound connection or sending any success/failure reply. - accept_
with_ fixed_ target - accept_
with_ fixed_ target_ for_ peer