GSF.Net.Ftp.FtpClient.OnCommandSent C# (CSharp) Method

OnCommandSent() private method

private OnCommandSent ( string command ) : void
command string
return void
        internal void OnCommandSent(string command)
        {
            if ((object)CommandSent != null)
                CommandSent(this, new EventArgs<string>(command));
        }

Usage Example

Example #1
0
        /// <summary>
        /// Send FTP command to control channel.
        /// </summary>
        /// <param name="cmd">A <see cref="String"/> representing the command to send.</param>
        public void Command(string cmd)
        {
            if ((object)m_connection == null)
            {
                return;
            }

            byte[]        buff   = Encoding.Default.GetBytes(cmd + Environment.NewLine);
            NetworkStream stream = m_connection.GetStream();

            m_sessionHost.OnCommandSent(cmd);
            stream.Write(buff, 0, buff.Length);
            RefreshResponse();
        }
All Usage Examples Of GSF.Net.Ftp.FtpClient::OnCommandSent