Example #1
0
 internal Socks5Client(Socket clientSocket, DestroyDelegate destroy, AuthenticationList authList, ref LogMain log)
 {
     _ClientSocket = clientSocket;
     _Destroyer    = destroy;
     _AuthList     = authList;
     Log           = log;
 }
Example #2
0
 internal Socks5Handler(Socket ClientConnection, NegotiationCompleteDelegate Callback, AuthenticationList AuthList, ref LogMain log)
 {
     if (Callback == null)
     {
         return;
     }
     this._Connection = ClientConnection;
     this._Signaler   = Callback;
     this._AuthList   = AuthList;
     this.Log         = log;
 }
Example #3
0
 /// <summary>
 /// 初始化服务器
 /// </summary>
 /// <param name="ipAddress">监听IP地址</param>
 /// <param name="port">监听的端口</param>
 /// <param name="maxUser">最大用户数</param>
 internal Socks5Listener(String ipAddress, Int32 port, Int32 maxUser, ref LogMain log)
 {
     try
     {
         if (Log == null)
         {
             Log = log;
         }
         if (_AuthList == null)
         {
             _AuthList = new AuthenticationList();
         }
         this._Address = IPAddress.Parse(ipAddress);
         this._Port    = port;
         this._MaxUser = maxUser;
     } catch (Exception ex) { Log.AddLog("在初始化监听对象时出错|" + ex.Message); }
 }
Example #4
0
 internal AuthBase(AuthenticationList authList, ref LogMain log)
 {
     this._AuthList = authList;
     Log            = log;
 }