C# Class Shadowsocks.Controller.TCPRelay

Inheritance: Shadowsocks.Controller.Listener.Service
Afficher le fichier Open project: shadowsocks/shadowsocks-windows Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Handle ( byte firstPacket, int length, Socket socket, object state ) : bool
firstPacket byte
length int
socket Socket
state object
Résultat bool

Stop() public méthode

public Stop ( ) : void
Résultat void

TCPRelay() public méthode

public TCPRelay ( ShadowsocksController controller, Configuration conf ) : System
controller ShadowsocksController
conf Shadowsocks.Model.Configuration
Résultat System

UpdateInboundCounter() public méthode

public UpdateInboundCounter ( Server server, long n ) : void
server Shadowsocks.Model.Server
n long
Résultat void

UpdateLatency() public méthode

public UpdateLatency ( Server server, System.TimeSpan latency ) : void
server Shadowsocks.Model.Server
latency System.TimeSpan
Résultat void

UpdateOutboundCounter() public méthode

public UpdateOutboundCounter ( Server server, long n ) : void
server Shadowsocks.Model.Server
n long
Résultat void