|
-
Jun 6th, 2001, 09:34 PM
#1
Thread Starter
Lively Member
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.
-
Jun 7th, 2001, 06:53 AM
#2
Black Cat
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.
-
Jun 7th, 2001, 11:35 PM
#3
Thread Starter
Lively Member
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.
-
Jun 8th, 2001, 06:30 AM
#4
Black Cat
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|