📄 sockssipconnectionoption.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -