예제 #1
0
 /// <summary>
 /// Initializes a new ProxyConfig instance.
 /// </summary>
 /// <param name="parent">The parent of this ProxyCondif instance.</param>
 /// <exception cref="ArgumentNullException"><c>file</c> is null -or- <c>parent</c> is null.</exception>
 public ProxyConfig(IProxy parent, IAuthenticationList mUserList)
 {
     if (parent == null)
     {
         throw new ArgumentNullException();
     }
     m_Parent   = parent;
     m_UserList = mUserList;
 }
예제 #2
0
 ///<summary>Initializes a new instance of the AuthUserPass class.</summary>
 ///<param name="AuthList">An AuthenticationList object that contains the list of all valid username/password combinations.</param>
 ///<remarks>If the AuthList parameter is null, any username/password combination will be accepted.</remarks>
 public AuthUserPass(IAuthenticationList AuthList)
 {
     this.AuthList = AuthList;
 }
예제 #3
0
 ///<summary>Initializes a new instance of the SocksListener class.</summary>
 ///<param name="Port">The port to listen on.</param>
 ///<param name="Address">The address to listen on. You can specify IPAddress.Any to listen on all installed network cards.</param>
 ///<param name="AuthList">The list of valid login/password combinations. If you do not need password authentication, set this parameter to null.</param>
 ///<remarks>For the security of your server, try to avoid to listen on every network card (IPAddress.Any). Listening on a local IP address is usually sufficient and much more secure.</remarks>
 public SocksListener(IPAddress Address, int Port, IAuthenticationList AuthList)
     : base(Port, Address)
 {
     this.AuthList = AuthList;
 }
예제 #4
0
 ///<summary>Initializes a new instance of the SocksListener class.</summary>
 ///<param name="Port">The port to listen on.</param>
 ///<param name="AuthList">The list of valid login/password combinations. If you do not need password authentication, set this parameter to null.</param>
 ///<remarks>The SocksListener will listen on all available network cards.</remarks>
 public SocksListener(int Port, IAuthenticationList AuthList) : this(IPAddress.Any, Port, AuthList)
 {
 }
예제 #5
0
 ///<summary>Initializes a new instance of the SocksClient class.</summary>
 ///<param name="ClientSocket">The Socket connection between this proxy server and the local client.</param>
 ///<param name="Destroyer">The method to be called when this SocksClient object disconnects from the local client and the remote server.</param>
 ///<param name="AuthList">The list with valid username/password combinations.</param>
 ///<remarks>If the AuthList is non-null, every client has to authenticate before he can use this proxy server to relay data. If it is null, the clients don't have to authenticate.</remarks>
 public SocksClient(Socket ClientSocket, DestroyDelegate Destroyer, IAuthenticationList AuthList)
     : base(ClientSocket, Destroyer)
 {
     this.AuthList = AuthList;
 }
예제 #6
0
 ///<summary>Initializes a new instance of the SocksClient class.</summary>
 ///<param name="ClientSocket">The Socket connection between this proxy server and the local client.</param>
 ///<param name="Destroyer">The method to be called when this SocksClient object disconnects from the local client and the remote server.</param>
 ///<param name="AuthList">The list with valid username/password combinations.</param>
 ///<remarks>If the AuthList is non-null, every client has to authenticate before he can use this proxy server to relay data. If it is null, the clients don't have to authenticate.</remarks>
 public SocksClient(Socket ClientSocket, DestroyDelegate Destroyer, IAuthenticationList AuthList)
     : base(ClientSocket, Destroyer)
 {
     this.AuthList = AuthList;
 }
예제 #7
0
 ///<summary>Initializes a new instance of the Socks5Handler class.</summary>
 ///<param name="ClientConnection">The connection with the client.</param>
 ///<param name="Callback">The method to call when the SOCKS negotiation is complete.</param>
 ///<param name="AuthList">The authentication list to use when clients connect.</param>
 ///<exception cref="ArgumentNullException"><c>Callback</c> is null.</exception>
 ///<remarks>If the AuthList parameter is null, no authentication will be required when a client connects to the proxy server.</remarks>
 public Socks5Handler(Socket ClientConnection, NegotiationCompleteDelegate Callback, IAuthenticationList AuthList)
     : base(ClientConnection, Callback)
 {
     this.AuthList = AuthList;
 }
예제 #8
0
 ///<summary>Initializes a new instance of the AuthUserPass class.</summary>
 ///<param name="AuthList">An AuthenticationList object that contains the list of all valid username/password combinations.</param>
 ///<remarks>If the AuthList parameter is null, any username/password combination will be accepted.</remarks>
 public AuthUserPass(IAuthenticationList AuthList)
 {
     this.AuthList = AuthList;
 }
예제 #9
0
 /// <summary>
 /// Initializes a new ProxyConfig instance.
 /// </summary>
 /// <param name="parent">The parent of this ProxyCondif instance.</param>
 /// <exception cref="ArgumentNullException"><c>file</c> is null -or- <c>parent</c> is null.</exception>
 public ProxyConfig(IProxy parent, IAuthenticationList mUserList)
 {
     if (parent == null)
         throw new ArgumentNullException();
     m_Parent = parent;
     m_UserList = mUserList;
 }
예제 #10
0
 ///<summary>Initializes a new instance of the Socks5Handler class.</summary>
 ///<param name="ClientConnection">The connection with the client.</param>
 ///<param name="Callback">The method to call when the SOCKS negotiation is complete.</param>
 ///<param name="AuthList">The authentication list to use when clients connect.</param>
 ///<exception cref="ArgumentNullException"><c>Callback</c> is null.</exception>
 ///<remarks>If the AuthList parameter is null, no authentication will be required when a client connects to the proxy server.</remarks>
 public Socks5Handler(Socket ClientConnection, NegotiationCompleteDelegate Callback, IAuthenticationList AuthList)
     : base(ClientConnection, Callback)
 {
     this.AuthList = AuthList;
 }
예제 #11
0
 ///<summary>Initializes a new instance of the SocksListener class.</summary>
 ///<param name="Port">The port to listen on.</param>
 ///<param name="Address">The address to listen on. You can specify IPAddress.Any to listen on all installed network cards.</param>
 ///<param name="AuthList">The list of valid login/password combinations. If you do not need password authentication, set this parameter to null.</param>
 ///<remarks>For the security of your server, try to avoid to listen on every network card (IPAddress.Any). Listening on a local IP address is usually sufficient and much more secure.</remarks>
 public SocksListener(IPAddress Address, int Port, IAuthenticationList AuthList)
     : base(Port, Address)
 {
     this.AuthList = AuthList;
 }
예제 #12
0
 ///<summary>Initializes a new instance of the SocksListener class.</summary>
 ///<param name="Port">The port to listen on.</param>
 ///<param name="AuthList">The list of valid login/password combinations. If you do not need password authentication, set this parameter to null.</param>
 ///<remarks>The SocksListener will listen on all available network cards.</remarks>
 public SocksListener(int Port, IAuthenticationList AuthList)
     : this(IPAddress.Any, Port, AuthList)
 {
 }