Example #1
0
        private void DataSocket_OnReceive(object currentObj, byte[] data)
        {
            var ut      = currentObj as IUserToken;
            var ftpUser = FTPServerConfigManager.GetUser(_userName);

            ftpUser.FTPDataManager.Receive(data);
        }
Example #2
0
        public void Checke()
        {
            var ftpUser = FTPServerConfigManager.GetUser(_userName);

            while (IsConnected)
            {
                _autoResetEvent.WaitOne(1);

                if (!IsConnected)
                {
                    break;
                }
            }
            ftpUser.FTPDataManager.FileComplete();
        }