C# 클래스 TrotiNet.SystemProxySettings

Container class for proxy settings
파일 보기 프로젝트 열기: Gizeta/Nekoxy-fiddler 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AutoConfigURL string
ProxyOverride string
ProxyServer string

공개 메소드들

메소드 설명
GetHttpSpecificProxy ( string &proxy_host, int &proxy_port ) : void

Retrieve the HTTP-specific proxy settings

GetHttpsSpecificProxy ( string &proxy_host, int &proxy_port ) : void

Retrieve the HTTP-specific proxy settings

GetProtocolSpecificProxy ( string protocol, int default_port, string &proxy_host, int &proxy_port ) : void

Extract protocol-specific proxy settings

SetHttpSpecificProxy ( string proxy_host, int proxy_port ) : void

Replace the proxy for the HTTP protocol; proxy settings for the other protocols are left unchanged

ProxyEnable is not modified either, and must be updated separately.

SystemProxySettings ( bool proxyEnable, string proxyServer, string proxyOverride ) : System

Constructor with default (empty) auto config URL

SystemProxySettings ( bool proxyEnable, string proxyServer, string proxyOverride, string autoConfigURL ) : System

Constructor

ToString ( ) : string

Human-readable representation

메소드 상세

GetHttpSpecificProxy() 공개 메소드

Retrieve the HTTP-specific proxy settings
public GetHttpSpecificProxy ( string &proxy_host, int &proxy_port ) : void
proxy_host string
proxy_port int
리턴 void

GetHttpsSpecificProxy() 공개 메소드

Retrieve the HTTP-specific proxy settings
public GetHttpsSpecificProxy ( string &proxy_host, int &proxy_port ) : void
proxy_host string
proxy_port int
리턴 void

GetProtocolSpecificProxy() 공개 메소드

Extract protocol-specific proxy settings
public GetProtocolSpecificProxy ( string protocol, int default_port, string &proxy_host, int &proxy_port ) : void
protocol string /// One of "ftp=", "socks=", "http=", "https="; it must end with a /// '=' sign. ///
default_port int /// The default port for the protocol, e.g. 80 for HTTP ///
proxy_host string /// Will be set to the proxy host name ///
proxy_port int /// Will be set to the proxy port ///
리턴 void

SetHttpSpecificProxy() 공개 메소드

Replace the proxy for the HTTP protocol; proxy settings for the other protocols are left unchanged
ProxyEnable is not modified either, and must be updated separately.
public SetHttpSpecificProxy ( string proxy_host, int proxy_port ) : void
proxy_host string
proxy_port int
리턴 void

SystemProxySettings() 공개 메소드

Constructor with default (empty) auto config URL
public SystemProxySettings ( bool proxyEnable, string proxyServer, string proxyOverride ) : System
proxyEnable bool
proxyServer string
proxyOverride string
리턴 System

SystemProxySettings() 공개 메소드

Constructor
public SystemProxySettings ( bool proxyEnable, string proxyServer, string proxyOverride, string autoConfigURL ) : System
proxyEnable bool
proxyServer string
proxyOverride string
autoConfigURL string
리턴 System

ToString() 공개 메소드

Human-readable representation
public ToString ( ) : string
리턴 string

프로퍼티 상세

AutoConfigURL 공개적으로 프로퍼티

Correspond to the system/IE advanced option "Use Automatic Configuration Script."
public string AutoConfigURL
리턴 string

ProxyOverride 공개적으로 프로퍼티

Correspond to the system/IE advanced option "Exceptions" (do not use proxy server for these address prefixes). For example: *.local
If the option "Bypass proxy server for local addresses" is checked, ";<local>" is appended to ProxyOverride.
public string ProxyOverride
리턴 string

ProxyServer 공개적으로 프로퍼티

Correspond to the system/IE options "Address" and "Port", and the advanced option "Servers".
- If the proxy is the same for all protocols, use: localhost:2000 - If the proxy depends on the TCP service, use this syntax: ftp=ip1:2002;http=ip2:2000;https=ip3:2001;socks=ip4:2003
public string ProxyServer
리턴 string