Zennolab.CommandCenter
GetProxy Method
See Also  Example Send Feedback
Zennolab.CommandCenter Namespace > Instance Class : GetProxy Method
Returns a proxy of the Instance object.

Syntax

C# 
public string GetProxy()

Return Value

Type: System.String

Contains a string of the form "ip:port:isSocks"

Example

The following example uses the GetProxy method. Parses proxy and gets ip, port, socks.
C#Copy Code
string proxy = instance.GetProxy();
 
if (proxy != "noproxy")
{
    string[] args = proxy.Split(':');
    string ip = args[0];
    int port = Convert.ToInt32(args[1]);
    bool s = Convert.ToBoolean(args[2]); 
}
PHPCopy Code
$proxy = $instance->GetProxy();
 
if ($proxy != "noproxy")
{
    $args = explode(":", $proxy);
    $ip = $args[0];
    $port = $args[1];
    $s = $args[2]; 
}

Remarks

If a proxy is not used, then the result is "noproxy"

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.