Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 5 - FTP Server: The Theory
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

FTP Server: The Theory
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2007-01-29

    Table of Contents:
  • FTP Server: The Theory
  • Explaining the Exchange
  • FTP Commands
  • Access Control Commands
  • Commands That Manipulate

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    FTP Server: The Theory - Commands That Manipulate


    (Page 5 of 5 )

    Most of the rest of the commands deal with manipulating files on a file system. They include (from RFC959):

    CHANGE WORKING DIRECTORY (CWD): This command allows the user to work with a different directory or dataset for file storage or retrieval without altering his login or accounting information. Transfer parameters are similarly unchanged. The argument is a pathname specifying a directory:

    CWD Apathname

    DELE <SP> <pathname> <CRLF>

    This command causes the file specified in the pathname argument to be deleted on the computer that the server application is running.

    RMD <SP> <pathname> <CRLF>

    The ReMove Directory command deletes a directory located on the computer that the server application runs on.

    MKD <SP> <pathname> <CRLF>

    The MaKeDir command creates a new directory on the server side.

    PWD <CRLF>

    This command causes the name of the current working directory to be returned in the reply.

    LIST [<SP> <pathname>] <CRLF>

    This command displays a list of files in a given directory or path. It is perhaps the most important command of them all, simply because it enables you to see what files are available with their names, sizes, and location indicated. Without this information, you would not be able to do any file manipulation at all.

    Conclusion

    I cannot emphasize enough the need for you to avail yourself of the RFC 959 when implementing an FTP server. Once you have a better understanding of how it all works together, you will not have any problems implementing an FTP server. In the next article we are going to look at how to implement a custom FTP server using Delphi.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · This article just describes what a FTP server is and how it works. Any comments are...
       · Hi,The notes on FTP Server was very useful. I want to know more detail about the...
     

    DELPHI-KYLIX ARTICLES

    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT