Module shadowsocks::relay::tcprelay
[−]
[src]
TcpRelay implementation
Modules
client |
TCP relay client implementation |
local |
TcpRelay server that running on local environment |
server |
TcpRelay server that running on the server side |
Enums
CopyExactEncrypted |
Copy exactly N bytes by encryption |
IgnoreUntilEnd |
Read until EOF, and ignore |
TunnelDirection |
Directions in the tunnel |
Functions
copy_exact_encrypted |
Copy all bytes from reader and write all encrypted data into writer |
ignore_until_end |
Ignore all data from the reader |
proxy_handshake |
ShadowSocks Client-Server handshake protocol Exchange cipher IV and creates stream wrapper |
proxy_server_handshake |
Handshake logic for ShadowSocks Client |
tunnel |
Establish tunnel between server and client |
Type Definitions
DecryptedHalf |
ReadHalf of TcpStream with decryption |
DecryptedHalfFut |
Boxed future of DecryptedHalf |
EncryptedHalf |
WriteHalf of TcpStream with encryption |
EncryptedHalfFut |
Boxed future of EncryptedHalf |