C# Class Shadowsocks.Controller.ShadowsocksController

Datei anzeigen Open project: icylogic/shadowsocks-windows Class Usage Examples

Public Properties

Property Type Description
inboundCounter long
outboundCounter long

Public Methods

Method 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

Protected Methods

Method Description
Reload ( ) : void
ReportError ( Exception e ) : void
SaveConfig ( Configuration newConfig ) : void

Private Methods

Method 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 method

public AddServerBySSURL ( string ssURL ) : bool
ssURL string
return bool

GetAServer() public method

public GetAServer ( IStrategyCallerType type, IPEndPoint localIPEndPoint ) : Server
type IStrategyCallerType
localIPEndPoint IPEndPoint
return Shadowsocks.Model.Server

GetConfigurationCopy() public method

public GetConfigurationCopy ( ) : Configuration
return Shadowsocks.Model.Configuration

GetCurrentConfiguration() public method

public GetCurrentConfiguration ( ) : Configuration
return Shadowsocks.Model.Configuration

GetCurrentServer() public method

public GetCurrentServer ( ) : Server
return Shadowsocks.Model.Server

GetCurrentStrategy() public method

public GetCurrentStrategy ( ) : IStrategy
return IStrategy

GetQRCode() public static method

public static GetQRCode ( Server server ) : string
server Shadowsocks.Model.Server
return string

GetQRCodeForCurrentServer() public method

public GetQRCodeForCurrentServer ( ) : string
return string

GetStrategies() public method

public GetStrategies ( ) : IList
return IList

Reload() protected method

protected Reload ( ) : void
return void

ReportError() protected method

protected ReportError ( Exception e ) : void
e System.Exception
return void

SaveConfig() protected method

protected SaveConfig ( Configuration newConfig ) : void
newConfig Shadowsocks.Model.Configuration
return void

SaveLogViewerConfig() public method

public SaveLogViewerConfig ( Shadowsocks.Model.LogViewerConfig newConfig ) : void
newConfig Shadowsocks.Model.LogViewerConfig
return void

SavePACUrl() public method

public SavePACUrl ( string pacUrl ) : void
pacUrl string
return void

SaveServers() public method

public SaveServers ( List servers, int localPort ) : void
servers List
localPort int
return void

SaveStrategyConfigurations() public method

public SaveStrategyConfigurations ( StatisticsStrategyConfiguration configuration ) : void
configuration Shadowsocks.Model.StatisticsStrategyConfiguration
return void

SelectServerIndex() public method

public SelectServerIndex ( int index ) : void
index int
return void

SelectStrategy() public method

public SelectStrategy ( string strategyID ) : void
strategyID string
return void

ShadowsocksController() public method

public ShadowsocksController ( ) : System
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

ToggleCheckingUpdate() public method

public ToggleCheckingUpdate ( bool enabled ) : void
enabled bool
return void

ToggleEnable() public method

public ToggleEnable ( bool enabled ) : void
enabled bool
return void

ToggleGlobal() public method

public ToggleGlobal ( bool global ) : void
global bool
return void

ToggleShareOverLAN() public method

public ToggleShareOverLAN ( bool enabled ) : void
enabled bool
return void

TouchPACFile() public method

public TouchPACFile ( ) : void
return void

TouchUserRuleFile() public method

public TouchUserRuleFile ( ) : void
return void

UpdateInboundCounter() public method

public UpdateInboundCounter ( long n ) : void
n long
return void

UpdateOutboundCounter() public method

public UpdateOutboundCounter ( long n ) : void
n long
return void

UpdatePACFromGFWList() public method

public UpdatePACFromGFWList ( ) : void
return void

UpdateStatisticsConfiguration() public method

public UpdateStatisticsConfiguration ( bool enabled ) : void
enabled bool
return void

UseOnlinePAC() public method

public UseOnlinePAC ( bool useOnlinePac ) : void
useOnlinePac bool
return void

Property Details

inboundCounter public_oe property

public long inboundCounter
return long

outboundCounter public_oe property

public long outboundCounter
return long