C# Class Shadowsocks.Controller.TCPRelay

Inheritance: Shadowsocks.Controller.Listener.Service
Datei anzeigen Open project: shadowsocks/shadowsocks-windows Class Usage Examples

Public Methods

Method Description
Handle ( byte firstPacket, int length, Socket socket, object state ) : bool
Stop ( ) : void
TCPRelay ( ShadowsocksController controller, Configuration conf ) : System
UpdateInboundCounter ( Server server, long n ) : void
UpdateLatency ( Server server, System.TimeSpan latency ) : void
UpdateOutboundCounter ( Server server, long n ) : void

Method Details

Handle() public method

public Handle ( byte firstPacket, int length, Socket socket, object state ) : bool
firstPacket byte
length int
socket Socket
state object
return bool

Stop() public method

public Stop ( ) : void
return void

TCPRelay() public method

public TCPRelay ( ShadowsocksController controller, Configuration conf ) : System
controller ShadowsocksController
conf Shadowsocks.Model.Configuration
return System

UpdateInboundCounter() public method

public UpdateInboundCounter ( Server server, long n ) : void
server Shadowsocks.Model.Server
n long
return void

UpdateLatency() public method

public UpdateLatency ( Server server, System.TimeSpan latency ) : void
server Shadowsocks.Model.Server
latency System.TimeSpan
return void

UpdateOutboundCounter() public method

public UpdateOutboundCounter ( Server server, long n ) : void
server Shadowsocks.Model.Server
n long
return void