/// <summary>
        ///
        /// </summary>
        /// <param name="port"></param>
        /// <param name="maxclientcount"></param>
        public BaseServerManager(ushort port, ushort maxclientcount)
        {
            try
            {
                this.port           = port;
                this.maxClientCount = maxclientcount;

                tcpSvr = new TcpSvr(this.port, this.maxClientCount);

                tcpSvr.Resovlver = new Neusoft.FrameWork.Server.DatagramResolver(DefaultEndTag);
                //服务器满
                tcpSvr.ServerFull += new Neusoft.FrameWork.Server.NetEvent(ServerFull);

                //新客户端连接
                tcpSvr.ClientConn += new Neusoft.FrameWork.Server.NetEvent(ClientConn);

                //客户端关闭
                tcpSvr.ClientClose += new Neusoft.FrameWork.Server.NetEvent(ClientClose);

                //接收到数据
                tcpSvr.RecvData += new Neusoft.FrameWork.Server.NetEvent(RecvClientData);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="configFileName"></param>
        public BaseServerManager(string configFileName)
        {
            this.configFileName = configFileName;

            if (!File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, this.configFileName)))
            {
                throw (new FileNotFoundException("没有找的服务器端默认的配置文件!"));
            }

            try
            {
                ExeConfigurationFileMap map = new ExeConfigurationFileMap();
                map.ExeConfigFilename = this.configFileName;
                Configuration config = ConfigurationManager.OpenMappedExeConfiguration(map, ConfigurationUserLevel.None);

                AppSettingsSection appSection = (AppSettingsSection)config.Sections["appSettings"];
                port           = Convert.ToUInt16(appSection.Settings["port"].Value);
                maxClientCount = Convert.ToUInt16(appSection.Settings["maxclientcount"].Value);

                tcpSvr = new TcpSvr(port, maxClientCount);

                tcpSvr.Resovlver = new Neusoft.FrameWork.Server.DatagramResolver(DefaultEndTag);
                //服务器满
                tcpSvr.ServerFull += new Neusoft.FrameWork.Server.NetEvent(ServerFull);

                //新客户端连接
                tcpSvr.ClientConn += new Neusoft.FrameWork.Server.NetEvent(ClientConn);

                //客户端关闭
                tcpSvr.ClientClose += new Neusoft.FrameWork.Server.NetEvent(ClientClose);

                //接收到数据
                tcpSvr.RecvData += new Neusoft.FrameWork.Server.NetEvent(RecvClientData);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }