sockssipconnectionoption.cs
来自「破解的飞信源代码」· CS 代码 · 共 125 行
CS
125 行
namespace Imps.Client.CommLayer.SocksSipConnection
{
using Imps.Client.CommLayer.Common;
using System;
[Serializable]
internal sealed class SocksSipConnectionOption : SipConnectionOption
{
private string _password;
private string _proxyHost;
private int _proxyPort;
private int _requireTimeout;
private string _userName;
private SocksVer? _ver;
public SocksSipConnectionOption()
{
this._ver = null;
this._proxyHost = string.Empty;
this._userName = string.Empty;
this._password = string.Empty;
this._requireTimeout = 10;
this.ProxyPort = 0x438;
}
public SocksSipConnectionOption(string proxyHost, int proxyPort, string username, string password)
{
this._ver = null;
this._proxyHost = string.Empty;
this._userName = string.Empty;
this._password = string.Empty;
this._requireTimeout = 10;
this.ProxyHost = proxyHost;
this.ProxyPort = proxyPort;
this.UserName = username;
this.Password = password;
}
public string Password
{
get
{
return this._password;
}
set
{
if (value == null)
{
throw new ArgumentNullException("Password");
}
this._password = value.Trim();
}
}
public string ProxyHost
{
get
{
return this._proxyHost;
}
set
{
if (value == null)
{
throw new ArgumentNullException("ProxyHost");
}
this._proxyHost = value;
}
}
public int ProxyPort
{
get
{
return this._proxyPort;
}
set
{
this._proxyPort = value;
}
}
public int RequireTimeout
{
get
{
return this._requireTimeout;
}
set
{
this._requireTimeout = value;
}
}
public string UserName
{
get
{
return this._userName;
}
set
{
if (value == null)
{
throw new ArgumentNullException("UserName");
}
this._userName = value;
}
}
public SocksVer? Ver
{
get
{
return this._ver;
}
set
{
this._ver = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?