public SocketConnector(ServiceManage pService, IPEndPoint pIPEndPoint, int iIdleInterval, int iReConnectCount)
            : base(pService, pIPEndPoint)
        {
            this._iIdleInterval = iIdleInterval;
            this._iAttemptCount = iReConnectCount;

            this.iCurrentCount   = -1;
            this.pReConnectTimer = new Timer(new TimerCallback(ReConnectCallBack));
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="pSocket">Socket类</param>
        /// <param name="pManagement">Socket管理类</param>
        /// <param name="eEncryptType">加密方式</param>
        /// <param name="eCompressionType">压缩方式</param>
        public ConnectionManage(Socket pSocket, CreatorManage pCreator, ServiceManage pService)
        {
            //赋值
            this._pSocket  = pSocket;
            this._pCreator = pCreator;
            this._pService = pService;

            //初始化变量
            //--连接状态
            this.bConnectActive = false;
            this.pConnectActive = new object();
            //--接收状态
            this.iReciveCount = 0;
            this.bReciveState = true;
            this.pReciveLock  = new object();
            //--发送状态
            this.bSendState = false;
            this.pSendItems = new Queue <SocketBuffer>();

            //创建会话ID
            this.strSession = Guid.NewGuid().ToString().ToUpper().Replace("-", "");
            //用户活动时间
            this.pActiveTime = DateTime.Now;
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="pService"></param>
 /// <param name="pEndPoint"></param>
 public CreatorManage(ServiceManage pService, IPEndPoint pEndPoint)
 {
     this._pService  = pService;
     this._pEndPoint = pEndPoint;
 }
 internal ClientConnect(Socket pSocket, CreatorManage pCreator, ServiceManage pService)
     : base(pSocket, pCreator, pService)
 {
 }
 public SocketListener(ServiceManage pService, IPEndPoint pEndPoint, int iMaxConnection, int iAcceptThread)
     : base(pService, pEndPoint)
 {
     this._iMaxConnection = iMaxConnection;
     this._iAcceptThread  = iAcceptThread;
 }