module ShadowsocksRuby::Connections
This module contains various functionality code to be mixed-in with EventMachine::Connection when Connection
object is instantiated.
There are 4 kinds of connection: client, local backend, remote server and destination. Which are demonstrated below:
------------------------------------------- ------------------------------------------------- | | | | Client <---> |ClientConnection -- RemoteServerConnecton| <---> |LocalBackendConnection -- DestinationConnection| <---> Destination net | Shadowsocks Client | net | Shadowsocks Server | net ------------------------------------------- -------------------------------------------------