예제 #1
0
        /// <summary>
        /// When a secure connection has been made.
        /// </summary>
        /// <param name="sender">The sender of the data.</param>
        /// <param name="e">The argument data.</param>
        private void _sslSocket_OnCommandConnected(object sender, ClientCommandArgs e)
        {
            // Set the server path and execute.
            // The path is now set.
            _sslSocket.Operation = Channel.Operation.SetPath;
            _sslSocket.FilePath.RemoteDirectoryPath = _internalFilePath.RemoteDirectoryPath;
            _sslSocket.Execute();

            // Execute the operation.
            _sslSocket.Operation = _operation;
            _sslSocket.FilePath  = _filePath;
            _sslSocket.Execute();
        }