C# Class Shadowsocks.Controller.ShadowsocksController

Afficher le fichier Open project: icylogic/shadowsocks-windows Class Usage Examples

Méthodes publiques

Свойство Type Description
inboundCounter long
outboundCounter long

Méthodes publiques

Méthode Description
AddServerBySSURL ( string ssURL ) : bool
GetAServer ( IStrategyCallerType type, IPEndPoint localIPEndPoint ) : Server
GetConfigurationCopy ( ) : Configuration
GetCurrentConfiguration ( ) : Configuration
GetCurrentServer ( ) : Server
GetCurrentStrategy ( ) : IStrategy
GetQRCode ( Server server ) : string
GetQRCodeForCurrentServer ( ) : string
GetStrategies ( ) : IList
SaveLogViewerConfig ( Shadowsocks.Model.LogViewerConfig newConfig ) : void
SavePACUrl ( string pacUrl ) : void
SaveServers ( List servers, int localPort ) : void
SaveStrategyConfigurations ( StatisticsStrategyConfiguration configuration ) : void
SelectServerIndex ( int index ) : void
SelectStrategy ( string strategyID ) : void
ShadowsocksController ( ) : System
Start ( ) : void
Stop ( ) : void
ToggleCheckingUpdate ( bool enabled ) : void
ToggleEnable ( bool enabled ) : void
ToggleGlobal ( bool global ) : void
ToggleShareOverLAN ( bool enabled ) : void
TouchPACFile ( ) : void
TouchUserRuleFile ( ) : void
UpdateInboundCounter ( long n ) : void
UpdateOutboundCounter ( long n ) : void
UpdatePACFromGFWList ( ) : void
UpdateStatisticsConfiguration ( bool enabled ) : void
UseOnlinePAC ( bool useOnlinePac ) : void

Méthodes protégées

Méthode Description
Reload ( ) : void
ReportError ( Exception e ) : void
SaveConfig ( Configuration newConfig ) : void

Private Methods

Méthode Description
ReleaseMemory ( ) : void
StartReleasingMemory ( ) : void
UpdateSystemProxy ( ) : void
pacServer_PACFileChanged ( object sender, EventArgs e ) : void
pacServer_PACUpdateCompleted ( object sender, GFWListUpdater e ) : void
pacServer_PACUpdateError ( object sender, ErrorEventArgs e ) : void
pacServer_UserRuleFileChanged ( object sender, EventArgs e ) : void

Method Details

AddServerBySSURL() public méthode

public AddServerBySSURL ( string ssURL ) : bool
ssURL string
Résultat bool

GetAServer() public méthode

public GetAServer ( IStrategyCallerType type, IPEndPoint localIPEndPoint ) : Server
type IStrategyCallerType
localIPEndPoint IPEndPoint
Résultat Shadowsocks.Model.Server

GetConfigurationCopy() public méthode

public GetConfigurationCopy ( ) : Configuration
Résultat Shadowsocks.Model.Configuration

GetCurrentConfiguration() public méthode

public GetCurrentConfiguration ( ) : Configuration
Résultat Shadowsocks.Model.Configuration

GetCurrentServer() public méthode

public GetCurrentServer ( ) : Server
Résultat Shadowsocks.Model.Server

GetCurrentStrategy() public méthode

public GetCurrentStrategy ( ) : IStrategy
Résultat IStrategy

GetQRCode() public static méthode

public static GetQRCode ( Server server ) : string
server Shadowsocks.Model.Server
Résultat string

GetQRCodeForCurrentServer() public méthode

public GetQRCodeForCurrentServer ( ) : string
Résultat string

GetStrategies() public méthode

public GetStrategies ( ) : IList
Résultat IList

Reload() protected méthode

protected Reload ( ) : void
Résultat void

ReportError() protected méthode

protected ReportError ( Exception e ) : void
e System.Exception
Résultat void

SaveConfig() protected méthode

protected SaveConfig ( Configuration newConfig ) : void
newConfig Shadowsocks.Model.Configuration
Résultat void

SaveLogViewerConfig() public méthode

public SaveLogViewerConfig ( Shadowsocks.Model.LogViewerConfig newConfig ) : void
newConfig Shadowsocks.Model.LogViewerConfig
Résultat void

SavePACUrl() public méthode

public SavePACUrl ( string pacUrl ) : void
pacUrl string
Résultat void

SaveServers() public méthode

public SaveServers ( List servers, int localPort ) : void
servers List
localPort int
Résultat void

SaveStrategyConfigurations() public méthode

public SaveStrategyConfigurations ( StatisticsStrategyConfiguration configuration ) : void
configuration Shadowsocks.Model.StatisticsStrategyConfiguration
Résultat void

SelectServerIndex() public méthode

public SelectServerIndex ( int index ) : void
index int
Résultat void

SelectStrategy() public méthode

public SelectStrategy ( string strategyID ) : void
strategyID string
Résultat void

ShadowsocksController() public méthode

public ShadowsocksController ( ) : System
Résultat System

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

ToggleCheckingUpdate() public méthode

public ToggleCheckingUpdate ( bool enabled ) : void
enabled bool
Résultat void

ToggleEnable() public méthode

public ToggleEnable ( bool enabled ) : void
enabled bool
Résultat void

ToggleGlobal() public méthode

public ToggleGlobal ( bool global ) : void
global bool
Résultat void

ToggleShareOverLAN() public méthode

public ToggleShareOverLAN ( bool enabled ) : void
enabled bool
Résultat void

TouchPACFile() public méthode

public TouchPACFile ( ) : void
Résultat void

TouchUserRuleFile() public méthode

public TouchUserRuleFile ( ) : void
Résultat void

UpdateInboundCounter() public méthode

public UpdateInboundCounter ( long n ) : void
n long
Résultat void

UpdateOutboundCounter() public méthode

public UpdateOutboundCounter ( long n ) : void
n long
Résultat void

UpdatePACFromGFWList() public méthode

public UpdatePACFromGFWList ( ) : void
Résultat void

UpdateStatisticsConfiguration() public méthode

public UpdateStatisticsConfiguration ( bool enabled ) : void
enabled bool
Résultat void

UseOnlinePAC() public méthode

public UseOnlinePAC ( bool useOnlinePac ) : void
useOnlinePac bool
Résultat void

Property Details

inboundCounter public_oe property

public long inboundCounter
Résultat long

outboundCounter public_oe property

public long outboundCounter
Résultat long