//public void StarService(CompressionType eCompression, int iMaxClient, int iPort, int iSocketBuffer)
        public void StarService(IPEndPoint pEndPoint, CompressionType eCompression, int iSocketBuffer)
        {
            //IPEndPoint pServerPoint = new IPEndPoint(0, iPort);

            //pSocketServer = new SocketServer(this, eCompression, iSocketBuffer, 1, 1);
            //pSocketServer.AddListener(pServerPoint, iMaxClient);

            //pSocketServer.ServiceStart();

            switch (this._eNetService)
            {
            case NetServiceType.HOST:
                pSocketServer = new SocketServer(this, eCompression, iSocketBuffer, this.iCheckInterval, this.iCheckTimeOut);
                pSocketServer.AddListener(pEndPoint, this.iMaxClient);

                pSocketServer.ServiceStart();
                break;

            case NetServiceType.CLIENT:
                pSocketClient = new AsyncClient(this, eCompression, iSocketBuffer, this.iCheckInterval, this.iCheckTimeOut);
                pSocketClient.AddConnector(pEndPoint);

                pSocketClient.ServiceStart();
                break;
            }
        }