Results 1 to 4 of 4

Thread: FTP info needed.

  1. #1

    Thread Starter
    Lively Member Silverbug's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    71

    Lightbulb FTP info needed.

    Hi, Im making an FTP client using winsock (only because Inet is too limited when it comes to my advanced features that Ill be adding later on.)

    I have a bit of a problem with the list command. More specificly what the server sends the client. I have been using Serv-U as a local server on my machine while testing it. When I send the list command it returns the string which I then decode and output to the user. However other servers dont seem to work the same.

    So what I needed to know is what is the output from the server to the client when the list command is sent. I have looked in the FTP RFC(959 I think) and cant find it ne where.

    Any help would be greatly appreciated.
    Silverbug,
    This space intentionally has nothing but text explaining why this
    space has nothing but text explaining that this space would otherwise
    have been left blank, and would otherwise have been left blank.

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Can you use a passive mode connection to the other servers so you don't have to open a listening port on the client?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Lively Member Silverbug's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    71
    wooohh! slow down there. hehe. whats passive mode? (take note of the avatar on the side ) i think i know what ur talking about but im pretty new to ftp etc, so i am still learning.

    i have a friend who is writing a ftp server and thats why im writing the client. eventually it will be able to detect that its connected to the "advanced server" (the one my firend is making) and open up a whole group of advanced features.

    however i just wanted to know how the list command works (well actually whats replyed to the client)
    what and how dose passive mode work?
    Silverbug,
    This space intentionally has nothing but text explaining why this
    space has nothing but text explaining that this space would otherwise
    have been left blank, and would otherwise have been left blank.

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Passive mode causes the FTP session to only use one connection. I believe normally FTP uses port 21 for commands and port 20 for data. The list command returns data from port 20 on the server to a listening port on the client, IIRC.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width