proxy.cs

来自「语音视频功能 里面实现了基本的QQ与语音对话」· CS 代码 · 共 64 行

CS
64
字号
using System;

namespace gowk.net
{
	public enum ProxyType{Null,Socks4,Socks5,Http}
	/// <summary>
	/// Proxy 的摘要说明。
	/// </summary>
	public class Proxy
	{		private string         m_host = null;		private int            m_port = 0;		private string         m_username = null;		private string         m_password = null;
		ProxyType m_proxyType;
		public Proxy()
		{
		}
		public ProxyType ProxyType
		{			get{return this.m_proxyType;}			set{this.m_proxyType=value;}		}		/// <summary>		/// the host running the proxy		/// </summary>		public string Host		{			get { return m_host; }			set { m_host = value; }		}		/// <summary>		/// the port to talk to the proxy host on		/// </summary>		public int Port		{			get { return m_port; }			set { m_port = value; }		}		/// <summary>		/// the auth username for the proxy		/// </summary>		public string Username		{			get { return m_username; }			set { m_username = value; }		}		/// <summary>		/// the auth password for the proxy		/// </summary>		public string Password		{			get { return m_password; }			set { m_password = value; }		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?